Merge branch 'master' into tacigar/farming

This commit is contained in:
tacigar 2016-12-23 00:07:32 +09:00
commit 79c6b44496
1 changed files with 3 additions and 3 deletions

View File

@ -256,7 +256,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()
@ -266,10 +266,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