aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/undo.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-01 04:53:56 -0400
committerhistoria <[not public]>2026-07-01 04:53:56 -0400
commitbf7c27c2cbf3eb56a0a4c5141e39b152c51614b5 (patch)
tree5383c325fafeb34c01ea737a7070402f040fc5af /internal/admin/undo.go
parentfbe5090ac3325ff8ea6989cdf4515c7f077c975b (diff)
downloadthehouseoficarus-bf7c27c2cbf3eb56a0a4c5141e39b152c51614b5.tar.gz
feat: admin gui map, item, and objects mostly complete
Diffstat (limited to 'internal/admin/undo.go')
-rw-r--r--internal/admin/undo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/admin/undo.go b/internal/admin/undo.go
index bec3c35..8f75d30 100644
--- a/internal/admin/undo.go
+++ b/internal/admin/undo.go
@@ -140,7 +140,7 @@ func (us *UndoStack) applyUndo(c ChangeDesc) error {
} else if c.IsCreate {
os.Remove(c.FilePath)
for _, ef := range c.ExtraFiles {
- os.Remove(ef.FilePath)
+ os.WriteFile(ef.FilePath, ef.OldContent, 0644)
}
} else {
target := c.FilePath