From 77993884ac8be19946aa5a27464175185e9c61e5 Mon Sep 17 00:00:00 2001 From: ike709 Date: Fri, 29 Nov 2024 12:32:08 -0600 Subject: [PATCH] Fix recreating deleted savefiles --- OpenDreamRuntime/Objects/Types/DreamObjectSavefile.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenDreamRuntime/Objects/Types/DreamObjectSavefile.cs b/OpenDreamRuntime/Objects/Types/DreamObjectSavefile.cs index 81feba9d27..5787ff702d 100644 --- a/OpenDreamRuntime/Objects/Types/DreamObjectSavefile.cs +++ b/OpenDreamRuntime/Objects/Types/DreamObjectSavefile.cs @@ -259,6 +259,7 @@ public void Close() { } public void Flush() { + if (Deleted) return; Resource!.Clear(); Resource!.Output(new DreamValue(JsonSerializer.Serialize(_rootNode))); }