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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

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