Skip to content

Commit

Permalink
update object defs on active objects
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle committed Nov 18, 2024
1 parent 76c2d24 commit 6fac16a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OpenDreamRuntime/DreamManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ public void HotReloadJson(string? jsonPath) {
_objectTree.LoadJson(json);
DreamProcNative.SetupNativeProcs(_objectTree);

foreach(DreamObject dreamObject in IterateDatums()){
dreamObject.ObjectDefinition = _objectTree.GetObjectDefinition(_objectTree.GetTreeEntry(dreamObject.ObjectDefinition.Type).Id);
}

}

Check warning

Code scanning / InspectCode

Incorrect blank lines: Incorrect number of blank lines near braces Warning

Incorrect number of blank lines near braces, expected maximum 0 instead of 1

public bool LoadJson(string? jsonPath) {
Expand Down

0 comments on commit 6fac16a

Please sign in to comment.