mirror of
https://github.com/Dragonop/claycrafter.git
synced 2024-11-04 22:53:47 +01:00
Fixes issue #5 (this time for real)
(this time it actually fixes it hah)
This commit is contained in:
parent
7a8d7ea8c6
commit
cdd5f49528
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user