mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
fix core:player component
This commit is contained in:
parent
2a52ca8806
commit
d990cbbdc4
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ end
|
||||||
|
|
||||||
function on_physics_update(delta)
|
function on_physics_update(delta)
|
||||||
local pid = entity:get_player()
|
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 pos = tsf:get_pos()
|
||||||
local cam = cameras.get("core:first-person")
|
local cam = cameras.get("core:first-person")
|
||||||
process_player_inputs(pid, delta)
|
process_player_inputs(pid, delta)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue