Fix biome marker dupes (#23500)

This commit is contained in:
metalgearsloth
2024-01-04 15:04:43 +11:00
committed by GitHub
parent 9f2535a130
commit 3ee6b8d2bc

View File

@@ -631,8 +631,12 @@ public sealed partial class BiomeSystem : SharedBiomeSystem
}
DebugTools.Assert(layerProto.EntityMask.Count == 0 || !string.IsNullOrEmpty(proto));
// Don't fight other layers.
if (!spawnSet.TryAdd(node, proto))
continue;
groupSize--;
spawnSet.Add(node, proto);
if (existing != null)
{