]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix salvage mission biome seed (#20885)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Tue, 10 Oct 2023 21:35:50 +0000 (08:35 +1100)
committerGitHub <noreply@github.com>
Tue, 10 Oct 2023 21:35:50 +0000 (14:35 -0700)
Content.Server/Parallax/BiomeSystem.cs
Content.Shared/Parallax/Biomes/BiomeComponent.cs

index ab66a48b97995c308465b05377bf8aa64d72857d..a9d78afa865e20d15d126d701a28af3369973276 100644 (file)
@@ -107,6 +107,9 @@ public sealed partial class BiomeSystem : SharedBiomeSystem
 
     private void OnBiomeMapInit(EntityUid uid, BiomeComponent component, MapInitEvent args)
     {
+        if (component.Seed != -1)
+            return;
+
         SetSeed(component, _random.Next());
     }
 
index 7e373db6e01dd51c7ba19d6e69dd74890958e28a..0fe21821728856efbe90dc4f24e09f57a6875c74 100644 (file)
@@ -15,7 +15,7 @@ public sealed partial class BiomeComponent : Component
 
     [ViewVariables(VVAccess.ReadWrite), DataField("seed")]
     [AutoNetworkedField]
-    public int Seed;
+    public int Seed = -1;
 
     /// <summary>
     /// The underlying entity, decal, and tile layers for the biome.