🐛 drop inputs controller events when owner is not alive

This commit is contained in:
anyreso 2024-12-01 22:17:31 -05:00
parent 3c8f5a91f0
commit 0052cc862c
2 changed files with 10 additions and 10 deletions

View file

@ -31,7 +31,7 @@ func _enter_tree() -> void:
set_multiplayer_authority(1)
func _unhandled_input(event: InputEvent) -> void:
if is_multiplayer_authority():
if is_multiplayer_authority() and owner.is_alive():
var mouse_mode: Input.MouseMode = Input.get_mouse_mode()
direction = Input.get_vector("left", "right", "forward", "backward")
jetting = Input.is_action_pressed("secondary")

File diff suppressed because one or more lines are too long