From b05fa5562c3fed8ebd8013d336edaca38b86ec5f Mon Sep 17 00:00:00 2001 From: ancientmarinerdev Date: Tue, 27 Jun 2023 17:42:40 +0100 Subject: [PATCH] Fix crash in hopper minecarts through missing ent --- mods/ENTITIES/mcl_minecarts/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_minecarts/init.lua b/mods/ENTITIES/mcl_minecarts/init.lua index 2d0cd78e97..60bdf1c320 100644 --- a/mods/ENTITIES/mcl_minecarts/init.lua +++ b/mods/ENTITIES/mcl_minecarts/init.lua @@ -85,7 +85,7 @@ local function hopper_take_item(self, dtime) for k, v in pairs(objs) do local ent = v:get_luaentity() - if ent._removed or not ent.itemstring or ent.itemstring == "" then + if not ent or (ent and ent._removed) or not ent.itemstring or ent.itemstring == "" then --minetest.log("Ignore this item") break end