Update 'textures_pack_30000/init.lua'
This commit is contained in:
parent
c68bff67ac
commit
79e311f654
1 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,11 @@ minetest.after(1,function()
|
||||||
local old=t.on_step
|
local old=t.on_step
|
||||||
function t.on_step(self,dtime,m)
|
function t.on_step(self,dtime,m)
|
||||||
local m=m or {}
|
local m=m or {}
|
||||||
old(self,dtime,m)
|
local ok,msg=pcall(old,self,dtime,m)
|
||||||
|
if not ok then
|
||||||
|
if msg then minetest.log("error",msg) end
|
||||||
|
self.object:remove()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
minetest.register_entity(":__builtin:item",t)
|
minetest.register_entity(":__builtin:item",t)
|
||||||
end)
|
end)
|
Loading…
Reference in a new issue