Skip to content

Commit

Permalink
Fix recreating deleted savefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ike709 committed Nov 29, 2024
1 parent 12b9f6e commit 7799388
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OpenDreamRuntime/Objects/Types/DreamObjectSavefile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ public void Close() {
}

public void Flush() {
if (Deleted) return;
Resource!.Clear();
Resource!.Output(new DreamValue(JsonSerializer.Serialize(_rootNode)));
}
Expand Down

0 comments on commit 7799388

Please sign in to comment.