fix recycler (#19590)
This commit is contained in:
@@ -120,7 +120,7 @@ public abstract class SharedMaterialReclaimerSystem : EntitySystem
|
|||||||
if (component.Blacklist is {} blacklist && blacklist.IsValid(item))
|
if (component.Blacklist is {} blacklist && blacklist.IsValid(item))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!_container.TryRemoveFromContainer(item))
|
if (_container.TryGetContainingContainer(item, out _) && !_container.TryRemoveFromContainer(item))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (user != null)
|
if (user != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user