From eee56f7f0da71650f5491385e93421e2ca765e30 Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Tue, 12 Dec 2023 08:42:25 -0500 Subject: [PATCH] add writing table --- api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index 063943f..0f78403 100644 --- a/api.lua +++ b/api.lua @@ -1315,8 +1315,8 @@ function XEnchanting.get_formspec_writing_table(self, pos, props) local player_name = props.player_name local data = props.data or {} - local show_crossed_arrow = props.data.show_crossed_arrow - local show_total_cost = props.data.show_total_cost + local show_crossed_arrow = data.show_crossed_arrow + local show_total_cost = data.show_total_cost local formspec = { 'size[8,9]',