don't mark interactive when there's an item in hand

This commit is contained in:
veclavtalica 2025-02-12 07:41:07 +03:00
parent 1b60c7a3a7
commit 1a5889bc7a

View File

@ -57,7 +57,7 @@ func _physics_process(delta: float) -> void:
## Process interactivity selection. ## Process interactivity selection.
if id == multiplayer.get_unique_id(): if id == multiplayer.get_unique_id():
var collider: Object = null var collider: Object = null
if _line_of_sight.is_colliding(): if held_thing == "" and _line_of_sight.is_colliding():
collider = _line_of_sight.get_collider(0) collider = _line_of_sight.get_collider(0)
if collider != _interaction_selection: if collider != _interaction_selection:
if _interaction_selection != null: if _interaction_selection != null: