1
0
mirror of https://github.com/tacigar/maidroid.git synced 2024-11-14 06:10:23 +01:00

Merge pull request #96 from tacigar/tacigar/wield_item

Fix dummy empty craft item
This commit is contained in:
tacigar 2016-12-23 00:05:58 +09:00 committed by GitHub
commit 2b80b302bb

View File

@ -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