fixed a world 9 softlocks with the world select menu

This commit is contained in:
JHDev2006
2025-09-24 16:01:47 +01:00
parent 44a65fe79d
commit 962787c861
6 changed files with 53 additions and 38 deletions

View File

@@ -39,6 +39,8 @@ func open() -> void:
setup_visuals()
show()
await get_tree().process_frame
if Global.current_game_mode != Global.GameMode.CAMPAIGN:
selected_world = clamp(selected_world, 0, 7)
$%SlotContainer.get_child(selected_world).grab_focus()
active = true