From 8ff92fcb7f916f5a217e039cf099e558479a5dc4 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 4 Feb 2018 06:13:12 +0100 Subject: [PATCH] Fix anvil not updating after removing input slot --- mods/ITEMS/mcl_anvils/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_anvils/init.lua b/mods/ITEMS/mcl_anvils/init.lua index c82c4c199d..64ef7a4521 100644 --- a/mods/ITEMS/mcl_anvils/init.lua +++ b/mods/ITEMS/mcl_anvils/init.lua @@ -289,14 +289,14 @@ local anvildef = { -- Otherwise: Rename mode: Clear all input slots as the whole stack is renamed. inv:set_list("input", {"", ""}) end - end - if listname == "output" then local destroyed = damage_anvil(pos, player) -- Close formspec if anvil was destroyed if destroyed then -- See above for justification. minetest.close_formspec(player:get_player_name(), "") end + elseif listname == "input" then + update_anvil_slots(meta) end end, on_construct = function(pos)