co mnment

:earnest:
This commit is contained in:
SkyanUltra 2025-11-18 04:54:17 -05:00
parent 9fd858811f
commit 073fcb5489

View file

@ -114,6 +114,7 @@ func in_game() -> void:
func run_player_check(player: Player) -> void:
# guzlad: Added support for characters with a hitbox height below 1.0 to enter pipes underwater
# SkyanUltra: Added distance check to prevent entering pipes from too low.
var distance = player.global_position.distance_to(hitbox.global_position)
if distance <= 6 and Global.player_action_pressed(get_input_direction(enter_direction), player.player_id) and (player.is_actually_on_floor() or enter_direction == 1):
can_enter = false