From e361b3572425d8fd25bd8cf27ff63c47fcb792f2 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 29 Aug 2020 10:57:33 +0200 Subject: [PATCH] Fix crash delete item entity with empty itemstring --- mods/ENTITIES/mcl_item_entity/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ENTITIES/mcl_item_entity/init.lua b/mods/ENTITIES/mcl_item_entity/init.lua index a6f3fe1103..d7c76f1991 100644 --- a/mods/ENTITIES/mcl_item_entity/init.lua +++ b/mods/ENTITIES/mcl_item_entity/init.lua @@ -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.") self._removed = true self.object:remove() + return end local p = self.object:get_pos()