add vc.is_headless, vc.is_client

This commit is contained in:
MihailRis 2026-04-26 22:39:41 +03:00
parent ded3dd2046
commit 678e5db03d
6 changed files with 19 additions and 6 deletions

View file

@ -80,7 +80,7 @@ function on_physics_update(delta)
local front = mat4.mul(rot, {0, 0, -1})
local pos = tsf:get_pos()
if not VC_HEADLESS and pid == hud.get_player() then
if vc.is_client() and pid == hud.get_player() then
process_player_inputs(pid, rot, delta)
end
mob.look_at(vec3.add(pos, front))