From d990cbbdc4ca63bc55575951dab2062f4d8e33c2 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sat, 20 Sep 2025 17:51:00 +0300 Subject: [PATCH] fix core:player component --- res/scripts/components/player.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/scripts/components/player.lua b/res/scripts/components/player.lua index 2a63f681..3bc58e68 100644 --- a/res/scripts/components/player.lua +++ b/res/scripts/components/player.lua @@ -53,7 +53,7 @@ end function on_physics_update(delta) local pid = entity:get_player() - if pid ~= -1 then + if pid ~= -1 and (hud and pid == hud.get_player()) then local pos = tsf:get_pos() local cam = cameras.get("core:first-person") process_player_inputs(pid, delta)