From 425e49bbc857c7a4c4a0025a8e71e6589a946d88 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Wed, 11 Oct 2023 08:35:50 +1100 Subject: [PATCH] Fix salvage mission biome seed (#20885) --- Content.Server/Parallax/BiomeSystem.cs | 3 +++ Content.Shared/Parallax/Biomes/BiomeComponent.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Content.Server/Parallax/BiomeSystem.cs b/Content.Server/Parallax/BiomeSystem.cs index ab66a48b97..a9d78afa86 100644 --- a/Content.Server/Parallax/BiomeSystem.cs +++ b/Content.Server/Parallax/BiomeSystem.cs @@ -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()); } diff --git a/Content.Shared/Parallax/Biomes/BiomeComponent.cs b/Content.Shared/Parallax/Biomes/BiomeComponent.cs index 7e373db6e0..0fe2182172 100644 --- a/Content.Shared/Parallax/Biomes/BiomeComponent.cs +++ b/Content.Shared/Parallax/Biomes/BiomeComponent.cs @@ -15,7 +15,7 @@ public sealed partial class BiomeComponent : Component [ViewVariables(VVAccess.ReadWrite), DataField("seed")] [AutoNetworkedField] - public int Seed; + public int Seed = -1; /// /// The underlying entity, decal, and tile layers for the biome. -- 2.51.2