Fix storage (#37714)

The one path I forgot to get the relative index.
This commit is contained in:
metalgearsloth
2025-05-23 00:11:36 +10:00
committed by GitHub
parent 6c6f33e47e
commit d924e11c3a

View 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)