forked from Mineclonia/Mineclonia
Fix anvil not updating after removing input slot
This commit is contained in:
parent
9ca97d6f4a
commit
8ff92fcb7f
|
@ -289,14 +289,14 @@ local anvildef = {
|
||||||
-- Otherwise: Rename mode: Clear all input slots as the whole stack is renamed.
|
-- Otherwise: Rename mode: Clear all input slots as the whole stack is renamed.
|
||||||
inv:set_list("input", {"", ""})
|
inv:set_list("input", {"", ""})
|
||||||
end
|
end
|
||||||
end
|
|
||||||
if listname == "output" then
|
|
||||||
local destroyed = damage_anvil(pos, player)
|
local destroyed = damage_anvil(pos, player)
|
||||||
-- Close formspec if anvil was destroyed
|
-- Close formspec if anvil was destroyed
|
||||||
if destroyed then
|
if destroyed then
|
||||||
-- See above for justification.
|
-- See above for justification.
|
||||||
minetest.close_formspec(player:get_player_name(), "")
|
minetest.close_formspec(player:get_player_name(), "")
|
||||||
end
|
end
|
||||||
|
elseif listname == "input" then
|
||||||
|
update_anvil_slots(meta)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
|
|
Loading…
Reference in New Issue