fix another nil crash in the smelter

master
Vanessa Ezekowitz 2013-12-01 23:55:47 -05:00
parent 109409e929
commit 1fcdc21d77
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ minetest.register_abm({
return
end
if cooked.item:is_empty() then
if cooked and cooked.item and cooked.item:is_empty() then
if was_active then
meta:set_string("infotext","Smelter is empty")
hacky_swap_node(pos,"smelter:smelter")