diff options
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), |
