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 Quanteey
parent d72371d320
commit 6f6eb3eed0
1 changed files with 1 additions and 1 deletions

View File

@ -1400,7 +1400,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)