mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-21 11:18:08 +00:00
Fixed issue where unlocked doors/containers couldn't be opened because the server wasn't being notified to add them to unlockedRooms/unlockedObjects. Server changes (game.rb): - Updated validate_unlock to accept method='unlocked' for unlocked targets - Added logic to grant access for unlocked doors/objects without validation Client changes (doors.js): - Updated handleDoorInteraction to notify server for unlocked doors - Calls notifyServerUnlock with method='unlocked' before opening Client changes (interactions.js): - Added notifyServerForUnlockedContainer helper function - Updated container interaction to notify server before launching minigame This ensures that all room/container access is properly authorized on the server side, preventing 403 Forbidden errors when loading room/container data.