mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-21 11:18:08 +00:00
Changes: - Fix track_npc_encounters to handle case where encounteredNPCs is not an array - Add type checking to ensure encounteredNPCs is always an array before operations - Add comprehensive error handling and logging to room endpoint - Add scenario_data presence check before processing room request - Wrap room endpoint in try-catch to catch and log all errors Fixes: - TypeError: no implicit conversion of String into Array on line 312 - Prevents 500 errors when player_state has malformed data - Provides clear error messages and stack traces for debugging