Hotfix: Fix item toggling crashing the client for slimes (#37054)

fix item toggling crashing the server for slimes
This commit is contained in:
slarticodefast
2025-04-30 02:19:07 +02:00
committed by GitHub
parent 84178dd534
commit 0e586e3fae

View File

@@ -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))
{