]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix biome marker dupes (#23500)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Thu, 4 Jan 2024 04:04:43 +0000 (15:04 +1100)
committerGitHub <noreply@github.com>
Thu, 4 Jan 2024 04:04:43 +0000 (15:04 +1100)
Content.Server/Parallax/BiomeSystem.cs

index 09e202a76dca620625e9758f3e7ef02912527357..871373e9f8fde88477866f1a20cb147c77cda7ca 100644 (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)
                 {