Cooking : prevent crash when dropping custom entities inside the cauldron

master
Jean-Patrick Guerrero 2016-02-28 20:03:19 +01:00
parent 0455037a6b
commit b695cc3d33
1 changed files with 1 additions and 1 deletions

View File

@ -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