mirror of
https://github.com/tacigar/maidroid.git
synced 2024-11-13 13:50:22 +01:00
Merge pull request #96 from tacigar/tacigar/wield_item
Fix dummy empty craft item
This commit is contained in:
commit
2b80b302bb
|
@ -207,7 +207,7 @@ do
|
|||
end
|
||||
end
|
||||
|
||||
local function on_step(self, staticdata)
|
||||
local function on_step(self, dtime)
|
||||
local all_objects = minetest.get_objects_inside_radius(self.object:getpos(), 0.1)
|
||||
for _, obj in ipairs(all_objects) do
|
||||
local luaentity = obj:get_luaentity()
|
||||
|
@ -217,10 +217,10 @@ do
|
|||
if stack:get_name() ~= itemname then
|
||||
if stack:is_empty() then
|
||||
self.itemname = ""
|
||||
self.object:set_properties{textures="maidroid:dummy_empty_craftitem"}
|
||||
self.object:set_properties{textures={"maidroid:dummy_empty_craftitem"}}
|
||||
else
|
||||
self.itemname = stack:get_name()
|
||||
self.object:set_properties{textures=self.itemname}
|
||||
self.object:set_properties{textures={self.itemname}}
|
||||
end
|
||||
end
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue
Block a user