Fix salvage mission biome seed (#20885)
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user