From bf7c27c2cbf3eb56a0a4c5141e39b152c51614b5 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 1 Jul 2026 04:53:56 -0400 Subject: feat: admin gui map, item, and objects mostly complete --- internal/admin/undo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/admin/undo.go') 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 -- cgit v1.2.3