Ledger Nano X - The secure hardware wallet


a guest Dec 11th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function mobkit.before_shutdown() -- called by minetest.register_on_shutdown()
  2.     local objects = minetest.get_objects_inside_radius({x=0, y=0, z=0}, 31000)
  3.     for _, obj in ipairs(objects) do
  4.             local self = obj:get_luaentity()
  5.             local n = self.name
  6.             if type(minetest.registered_entities[n].head) == "boolean" then
  7.                     obj:remove()  -- more likely an error happens here
  8.                     self = nil
  9.             end
  10.     end
  11. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand