From aa4ffd6346ee8d8604fe838d1155d8e5be261cce Mon Sep 17 00:00:00 2001 From: JonShard Date: Thu, 6 Aug 2026 19:46:43 +0200 Subject: [PATCH] Fix Scene folder rename refs --- Net/multiplayer_world.gd | 4 ++-- Stations/station_movement.gd | 2 +- UI/main_menu_panel.gd | 4 ++-- test/run_tests_in_editor.gd | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Net/multiplayer_world.gd b/Net/multiplayer_world.gd index 2663589..ffeda23 100644 --- a/Net/multiplayer_world.gd +++ b/Net/multiplayer_world.gd @@ -146,9 +146,9 @@ func _on_player_left(peer_id: int) -> void: func _on_session_ended() -> void: NetworkManager.log_line("Session ended, returning to main menu") - get_tree().change_scene_to_file("res://Scenes/mainMenu.tscn") + get_tree().change_scene_to_file("res://scenes/mainMenu.tscn") func _on_connection_failed() -> void: NetworkManager.log_line("Connection failed, returning to main menu") - get_tree().change_scene_to_file("res://Scenes/mainMenu.tscn") + get_tree().change_scene_to_file("res://scenes/mainMenu.tscn") diff --git a/Stations/station_movement.gd b/Stations/station_movement.gd index b81d99f..12c7bdf 100644 --- a/Stations/station_movement.gd +++ b/Stations/station_movement.gd @@ -52,7 +52,7 @@ func _ready() -> void: move_ghost.visible = false _cache_ghost_materials() _set_ghost_color(GHOST_COLOR_VALID) - set_move_handle_enabled(false) + set_move_handle_enabled(GameManager.game_state == GameManager.GameState.BUILDING) Signals.game_state_changed.connect(_on_game_state_changed) diff --git a/UI/main_menu_panel.gd b/UI/main_menu_panel.gd index 8f19639..1384e36 100644 --- a/UI/main_menu_panel.gd +++ b/UI/main_menu_panel.gd @@ -5,8 +5,8 @@ extends Control ## multiplayer game, or join one by IP, driving scene switches + NetworkManager ## directly. -const JON_SCENE := "res://Scenes/JonScene.tscn" -const MULTIPLAYER_SCENE := "res://Scenes/multiPlayer.tscn" +const JON_SCENE := "res://scenes/JonScene.tscn" +const MULTIPLAYER_SCENE := "res://scenes/multiPlayer.tscn" const SETTINGS_PATH := "user://vryhungry_settings.cfg" var _ip := "127.0.0.1" diff --git a/test/run_tests_in_editor.gd b/test/run_tests_in_editor.gd index 61bf433..a1f404b 100644 --- a/test/run_tests_in_editor.gd +++ b/test/run_tests_in_editor.gd @@ -31,7 +31,7 @@ const END_HOLD := 3.0 ## scene and has to receive the whole layout over the network — the same path a ## client joining mid-session takes. const SERVER_SCENE := "res://test/multiPlayerTest.tscn" -const CLIENT_SCENE := "res://Scenes/multiPlayer.tscn" +const CLIENT_SCENE := "res://scenes/multiPlayer.tscn" func _run() -> void: