fix core:player component

This commit is contained in:
MihailRis 2025-09-20 17:51:00 +03:00
parent 2a52ca8806
commit d990cbbdc4

View File

@ -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)