From b695cc3d3365fc892d42c30450203dd0c7a0f563 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 28 Feb 2016 20:03:19 +0100 Subject: [PATCH] Cooking : prevent crash when dropping custom entities inside the cauldron --- cooking.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cooking.lua b/cooking.lua index 21a5892..eee096b 100644 --- a/cooking.lua +++ b/cooking.lua @@ -119,7 +119,7 @@ minetest.register_abm({ local ingredients = {} for _, obj in pairs(objs) do - if obj and obj:get_luaentity() then + if obj and obj:get_luaentity().itemstring then local itemstring = obj:get_luaentity().itemstring:match(":([%w_]+)") if ingredients == {} then for _, rep in pairs(ingredients) do