From d7be11a8aa35c5634498e876e39bc98802129436 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Wed, 21 Aug 2024 20:41:25 +0200 Subject: [PATCH] Bug fix --- tools/end_wrench.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/end_wrench.lua b/tools/end_wrench.lua index cd5c6de..23e683c 100644 --- a/tools/end_wrench.lua +++ b/tools/end_wrench.lua @@ -193,7 +193,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) local number = techage.get_node_number(pos) local node = minetest.get_node(pos) local ndef = minetest.registered_nodes[node.name] - local form_def = ndef and (ndef.ta3_formspec or ndef.ta4_formspec or ndef.ta5_formspec.menu) + local form_def = ndef and (ndef.ta3_formspec or ndef.ta4_formspec or (ndef.ta5_formspec and ndef.ta5_formspec.menu)) if form_def then if menu.eval_input(pos, form_def, fields, playername) then