From 194164a77eb4f2479b94c19e6f0e1278ab608781 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 18 Sep 2026 16:13:49 -0400 Subject: fix: more casino, economy, gameplay, security, and world data hardening gaps --- internal/game/cmd_room.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/game/cmd_room.go') 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 } -- cgit v1.2.3