aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_room.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_room.go')
-rw-r--r--internal/game/cmd_room.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/game/cmd_room.go b/internal/game/cmd_room.go
index 3210ef5..b381cf3 100644
--- a/internal/game/cmd_room.go
+++ b/internal/game/cmd_room.go
@@ -2,7 +2,6 @@ package game
import (
"fmt"
- "os"
"strings"
"gopkg.in/yaml.v3"
@@ -190,7 +189,7 @@ func (g *Game) writeRoom(sess *net.Session, fn func(*world.Room)) {
sess.WriteLine("Error marshaling room YAML.")
return
}
- if err := os.WriteFile(path, data, 0644); err != nil {
+ if err := writeRoomFile(path, data); err != nil {
sess.WriteLine("Error writing room file.")
return
}