diff options
| author | historia <[not public]> | 2026-09-19 01:55:34 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-19 01:55:34 -0400 |
| commit | cc33072eced3d5460512c09c42ec4531c807d7af (patch) | |
| tree | b1b451fa87fa389cb8343a3645372f3b43f5523e /internal/admin/api_rooms.go | |
| parent | 2c38386484cdb507c4687caceb37e0b963e33594 (diff) | |
| download | thehouseoficarus-cc33072eced3d5460512c09c42ec4531c807d7af.tar.gz | |
fix: casino stake preservation, world state reconciliation, casino game registration
Diffstat (limited to 'internal/admin/api_rooms.go')
| -rw-r--r-- | internal/admin/api_rooms.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/admin/api_rooms.go b/internal/admin/api_rooms.go index 863af47..ca7ad06 100644 --- a/internal/admin/api_rooms.go +++ b/internal/admin/api_rooms.go @@ -311,6 +311,11 @@ func (s *AdminServer) handleRoomByID(w http.ResponseWriter, r *http.Request) { failJSON(w, fmt.Sprintf("write room: %v", err)) return } + // Refresh live runtime state (objects, spawns, mobs) so the edit takes + // effect without a restart; player-dropped items are preserved. + if s.reconcileRoom != nil { + s.reconcileRoom(id) + } s.undoStack.Push(ChangeDesc{ Description: fmt.Sprintf("update room %d", id), |
