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

@ -25,7 +25,7 @@ function on_save()
SAVED_DATA.data = dropitem.data
end
if not VC_HEADLESS then
if vc.is_client() then
local scale = {1, 1, 1}
local rotation = mat4.rotate({
math.random(), math.random(), math.random()

View file

@ -11,7 +11,7 @@ else
SAVED_DATA.states = blockstates
end
if not VC_HEADLESS then-- setup visuals
if vc.is_client() then-- setup visuals
local rig = entity.skeleton
local id = block.index(blockid)
local rotation = block.decompose_state(blockstates)[1]