From cdd5f495288cb7b4b101b782749887415d317398 Mon Sep 17 00:00:00 2001 From: Dragonop Date: Wed, 20 Jan 2016 07:22:47 -0300 Subject: [PATCH] Fixes issue #5 (this time for real) (this time it actually fixes it hah) --- claycrafter.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/claycrafter.lua b/claycrafter.lua index 1b29c63..e11047f 100644 --- a/claycrafter.lua +++ b/claycrafter.lua @@ -208,7 +208,7 @@ minetest.register_abm({ src_time = src_time + 1 if src_time >= cooktime then -- Place result in dst list if possible - if inv:room_for_item("dst", ItemStack({name = "default:clay", count = 4}) and ItemStack({name = "vessels:drinking_glass"})) then + if inv:room_for_item("dst", ItemStack({name = "default:clay", count = 4})) and inv:room_for_item("dst", ItemStack({name = "vessels:drinking_glass"})) then print("Apparently, there's room.") inv:add_item("dst", {name = "default:clay", count = 4}) inv:remove_item("src", inv:get_stack("src", 1):get_name()) @@ -230,7 +230,7 @@ minetest.register_abm({ else -- Take fuel from fuel list - if inv:room_for_item("dst", ItemStack({name = "vessels:drinking_glass"}) and ItemStack({name = "default:clay"})) then + if inv:room_for_item("dst", ItemStack({name = "vessels:drinking_glass"})) and inv:room_for_item("dst", ItemStack({name = "default:clay", count = 4})) then inv:remove_item("fuel", inv:get_stack("fuel", 1):get_name()) inv:add_item("dst", {name = "vessels:drinking_glass"}) end