From c90dc7c2f2e04243ca75a7b16d956e8775c82562 Mon Sep 17 00:00:00 2001 From: Jake Cattrall Date: Mon, 26 Aug 2024 22:04:34 +0100 Subject: [PATCH] fix bad reference to GameManager --- addons/nodot/autoload/NetworkManager.gd | 2 -- addons/nodot/kits/FirstPerson/FirstPersonItemsContainer.gd | 2 -- addons/nodot/menus/MenuContainer.gd | 1 - 3 files changed, 5 deletions(-) diff --git a/addons/nodot/autoload/NetworkManager.gd b/addons/nodot/autoload/NetworkManager.gd index b297e8db..7863a2e8 100644 --- a/addons/nodot/autoload/NetworkManager.gd +++ b/addons/nodot/autoload/NetworkManager.gd @@ -33,5 +33,3 @@ func reset(): multiplayer_peer.close_connection() multiplayer_peer = ENetMultiplayerPeer.new() is_host = false - - diff --git a/addons/nodot/kits/FirstPerson/FirstPersonItemsContainer.gd b/addons/nodot/kits/FirstPerson/FirstPersonItemsContainer.gd index 077e0692..ecd8389c 100644 --- a/addons/nodot/kits/FirstPerson/FirstPersonItemsContainer.gd +++ b/addons/nodot/kits/FirstPerson/FirstPersonItemsContainer.gd @@ -115,8 +115,6 @@ func change_item(new_index: int) -> void: func activate_current_item(): is_item_active = true; var items: Array = get_all_items(); - if GameManager.has_item(active_item_index): - await (items[active_item_index] as FirstPersonItem).activate(); func deactivate_current_item(): is_item_active = false; diff --git a/addons/nodot/menus/MenuContainer.gd b/addons/nodot/menus/MenuContainer.gd index 32348ca3..751a77c4 100644 --- a/addons/nodot/menus/MenuContainer.gd +++ b/addons/nodot/menus/MenuContainer.gd @@ -24,4 +24,3 @@ func _hide() -> void: emit_signal("hiding") if !custom_transition: set_visible(false) -