From 556d9787083cfc5ae8485ee28f8a18a43d31f267 Mon Sep 17 00:00:00 2001 From: 0siribix Date: Mon, 6 Dec 2021 06:31:26 -0600 Subject: [PATCH] Formspec now updates after applying enchantment. This prevents crash when trying to apply a second enchantment --- src/enchanting.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/enchanting.lua b/src/enchanting.lua index 76d6486..690727c 100644 --- a/src/enchanting.lua +++ b/src/enchanting.lua @@ -134,6 +134,7 @@ function enchanting.fields(pos, _, fields, sender) mese:take_item(mese_cost) inv:set_stack("mese", 1, mese) inv:set_stack("tool", 1, tool) + enchanting.formspec(pos) end end