From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Thu, 4 Jan 2024 04:04:43 +0000 (+1100) Subject: Fix biome marker dupes (#23500) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=3ee6b8d2bcc5d12fc8a151e51aa5a345c950d043;p=space-station-14.git Fix biome marker dupes (#23500) --- diff --git a/Content.Server/Parallax/BiomeSystem.cs b/Content.Server/Parallax/BiomeSystem.cs index 09e202a76d..871373e9f8 100644 --- a/Content.Server/Parallax/BiomeSystem.cs +++ b/Content.Server/Parallax/BiomeSystem.cs @@ -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) {