mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Only reset output if input is empty
This commit is contained in:
parent
7fcc2e3be3
commit
0e60231c2e
@ -289,8 +289,12 @@ minetest.register_node("mcl_stonecutter:stonecutter", {
|
|||||||
local input = inv:get_stack("input", 1)
|
local input = inv:get_stack("input", 1)
|
||||||
input:take_item()
|
input:take_item()
|
||||||
inv:set_stack("input", 1, input)
|
inv:set_stack("input", 1, input)
|
||||||
|
if input:get_count() == 0 then
|
||||||
|
meta:set_string("cut_stone", nil)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
meta:set_string("cut_stone", nil)
|
||||||
end
|
end
|
||||||
meta:set_string("cut_stone", nil)
|
|
||||||
update_stonecutter_slots(meta)
|
update_stonecutter_slots(meta)
|
||||||
end,
|
end,
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user