Fix salvage mission biome seed (#20885)

This commit is contained in:
metalgearsloth
2023-10-11 08:35:50 +11:00
committed by GitHub
parent 1b90732e33
commit 425e49bbc8
2 changed files with 4 additions and 1 deletions

View File

@@ -107,6 +107,9 @@ public sealed partial class BiomeSystem : SharedBiomeSystem
private void OnBiomeMapInit(EntityUid uid, BiomeComponent component, MapInitEvent args) private void OnBiomeMapInit(EntityUid uid, BiomeComponent component, MapInitEvent args)
{ {
if (component.Seed != -1)
return;
SetSeed(component, _random.Next()); SetSeed(component, _random.Next());
} }

View File

@@ -15,7 +15,7 @@ public sealed partial class BiomeComponent : Component
[ViewVariables(VVAccess.ReadWrite), DataField("seed")] [ViewVariables(VVAccess.ReadWrite), DataField("seed")]
[AutoNetworkedField] [AutoNetworkedField]
public int Seed; public int Seed = -1;
/// <summary> /// <summary>
/// The underlying entity, decal, and tile layers for the biome. /// The underlying entity, decal, and tile layers for the biome.