Hotfix: Fix item toggling crashing the client for slimes (#37054)
fix item toggling crashing the server for slimes
This commit is contained in:
@@ -347,6 +347,7 @@ public abstract class SharedStorageSystem : EntitySystem
|
||||
storage = null;
|
||||
|
||||
if (!ContainerSystem.TryGetContainingContainer(itemEnt, out container) ||
|
||||
container.ID != StorageComponent.ContainerId ||
|
||||
!TryComp(container.Owner, out storage) ||
|
||||
!_itemQuery.Resolve(itemEnt, ref itemEnt.Comp, false))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user