From 79e311f654a71d661f50d5abafc92cf8ae402d3e Mon Sep 17 00:00:00 2001 From: Milan2018 Date: Sat, 15 May 2021 22:02:13 +0200 Subject: [PATCH] Update 'textures_pack_30000/init.lua' --- textures_pack_30000/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/textures_pack_30000/init.lua b/textures_pack_30000/init.lua index f2d1c06..ed33bca 100644 --- a/textures_pack_30000/init.lua +++ b/textures_pack_30000/init.lua @@ -3,7 +3,11 @@ minetest.after(1,function() local old=t.on_step function t.on_step(self,dtime,m) 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 minetest.register_entity(":__builtin:item",t) end) \ No newline at end of file