Fix crash delete item entity with empty itemstring

This commit is contained in:
Wuzzy 2020-08-29 10:57:33 +02:00
parent 09ee912096
commit e361b35724

View File

@ -519,6 +519,7 @@ minetest.register_entity(":__builtin:item", {
minetest.log("warning", "Item entity with empty itemstring found at "..minetest.pos_to_string(self.object:get_pos()).. "! Deleting it now.") minetest.log("warning", "Item entity with empty itemstring found at "..minetest.pos_to_string(self.object:get_pos()).. "! Deleting it now.")
self._removed = true self._removed = true
self.object:remove() self.object:remove()
return
end end
local p = self.object:get_pos() local p = self.object:get_pos()