From d924e11c3a2c48f726b39f831c7c9e085b108cdd Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 23 May 2025 00:11:36 +1000 Subject: [PATCH] Fix storage (#37714) The one path I forgot to get the relative index. --- Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs b/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs index b352243db8..bbbf8a449f 100644 --- a/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs +++ b/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs @@ -1396,7 +1396,7 @@ public abstract class SharedStorageSystem : EntitySystem // This bit of code is how area inserts go from tanking frames to being negligible. if (fastPath) { - var flag = SharedMapSystem.ToBitmask(position, StorageComponent.ChunkSize); + var flag = SharedMapSystem.ToBitmask(SharedMapSystem.GetChunkRelative(position, StorageComponent.ChunkSize), StorageComponent.ChunkSize); // Occupied so skip. if ((occupied & flag) == flag)