Skip to content

Commit

Permalink
fix: Fixes ProximitySpawner and RegionSpawner ToJson (#1827)
Browse files Browse the repository at this point in the history
  • Loading branch information
paezao authored Jun 6, 2024
1 parent 5a65a6b commit 832bb24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Projects/UOContent/Engines/Spawners/ProximitySpawner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public ProximitySpawner(DynamicJson json, JsonSerializerOptions options) : base(

public override void ToJson(DynamicJson json, JsonSerializerOptions options)
{
base.ToJson(json, options);
json.SetProperty("triggerRange", options, TriggerRange);
json.SetProperty("spawnMessage", options, SpawnMessage);
json.SetProperty("instant", options, InstantFlag);
Expand Down
1 change: 1 addition & 0 deletions Projects/UOContent/Engines/Spawners/RegionSpawner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public BaseRegion SpawnRegion

public override void ToJson(DynamicJson json, JsonSerializerOptions options)
{
base.ToJson(json, options);
json.SetProperty("region", options, SpawnRegion.Name);
}

Expand Down

0 comments on commit 832bb24

Please sign in to comment.