]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix storage (#37714)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Thu, 22 May 2025 14:11:36 +0000 (00:11 +1000)
committerGitHub <noreply@github.com>
Thu, 22 May 2025 14:11:36 +0000 (10:11 -0400)
The one path I forgot to get the relative index.

Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs

index b352243db8b08d4faa72194cbefc3aed31152afc..bbbf8a449f7093718ba0799c9e0f5e897b6c0e13 100644 (file)
@@ -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)