Fix salvage mission biome seed (#20885)

This commit is contained in:
metalgearsloth 2023-10-11 08:35:50 +11:00 committed by Debug
parent dff9d7fb58
commit f3edf06da3
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)
{
if (component.Seed != -1)
return;
SetSeed(component, _random.Next());
}

View 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.