mirror of
https://github.com/Dragonop/claycrafter.git
synced 2024-11-09 17:03:44 +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
|
src_time = src_time + 1
|
||||||
if src_time >= cooktime then
|
if src_time >= cooktime then
|
||||||
-- Place result in dst list if possible
|
-- 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.")
|
print("Apparently, there's room.")
|
||||||
inv:add_item("dst", {name = "default:clay", count = 4})
|
inv:add_item("dst", {name = "default:clay", count = 4})
|
||||||
inv:remove_item("src", inv:get_stack("src", 1):get_name())
|
inv:remove_item("src", inv:get_stack("src", 1):get_name())
|
||||||
@ -230,7 +230,7 @@ minetest.register_abm({
|
|||||||
else
|
else
|
||||||
-- Take fuel from fuel list
|
-- 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:remove_item("fuel", inv:get_stack("fuel", 1):get_name())
|
||||||
inv:add_item("dst", {name = "vessels:drinking_glass"})
|
inv:add_item("dst", {name = "vessels:drinking_glass"})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user