fix: Fixes ProximitySpawner and RegionSpawner ToJson (#1827)
This commit is contained in:
parent
5a65a6b8ea
commit
832bb24f11
2 changed files with 2 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ public partial class ProximitySpawner : Spawner
|
||||||
|
|
||||||
public override void ToJson(DynamicJson json, JsonSerializerOptions options)
|
public override void ToJson(DynamicJson json, JsonSerializerOptions options)
|
||||||
{
|
{
|
||||||
|
base.ToJson(json, options);
|
||||||
json.SetProperty("triggerRange", options, TriggerRange);
|
json.SetProperty("triggerRange", options, TriggerRange);
|
||||||
json.SetProperty("spawnMessage", options, SpawnMessage);
|
json.SetProperty("spawnMessage", options, SpawnMessage);
|
||||||
json.SetProperty("instant", options, InstantFlag);
|
json.SetProperty("instant", options, InstantFlag);
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,7 @@ public partial class RegionSpawner : Spawner
|
||||||
|
|
||||||
public override void ToJson(DynamicJson json, JsonSerializerOptions options)
|
public override void ToJson(DynamicJson json, JsonSerializerOptions options)
|
||||||
{
|
{
|
||||||
|
base.ToJson(json, options);
|
||||||
json.SetProperty("region", options, SpawnRegion.Name);
|
json.SetProperty("region", options, SpawnRegion.Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue