refactor Entities load + loading velocity

This commit is contained in:
MihailRis 2024-07-08 22:47:01 +03:00
parent 3cd0261f3b
commit 19c6a82ab2
6 changed files with 41 additions and 24 deletions

View file

@ -30,7 +30,7 @@ do -- setup visuals
local bid = block.index(icon:sub(16))
model = block.get_model(bid)
if model == "X" then
entity:set_rig("drop-item")
entity:set_rig("base:drop-item")
body:set_size(vec3.mul(body:get_size(), {1.0, 0.3, 1.0}))
rig:set_texture("$0", icon)
else
@ -46,7 +46,7 @@ do -- setup visuals
end
end
else
entity:set_rig("drop-item")
entity:set_rig("base:drop-item")
body:set_size(vec3.mul(body:get_size(), {1.0, 0.3, 1.0}))
rig:set_texture("$0", icon)
end