rename entity:set_rig to entity:set_skeleton

This commit is contained in:
MihailRis
2024-07-13 01:25:32 +03:00
parent 6214bf4a19
commit 3b24982c0d
3 changed files with 5 additions and 5 deletions
+2 -2
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("base:drop-item")
entity:set_skeleton("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("base:drop-item")
entity:set_skeleton("base:drop-item")
body:set_size(vec3.mul(body:get_size(), {1.0, 0.3, 1.0}))
rig:set_texture("$0", icon)
end
+1 -1
View File
@@ -52,7 +52,7 @@ end
local Entity = {__index={
despawn=function(self) return entities.despawn(self.eid) end,
set_rig=function(self, s) return entities.set_rig(self.eid, s) end,
set_skeleton=function(self, s) return entities.set_skeleton(self.eid, s) end,
get_component=function(self, name) return self.components[name] end,
has_component=function(self, name) return self.components[name] ~= nil end,
get_uid=function(self) return self.eid end,