From 194f444d2c72db7779f691dd786ae594d88fb234 Mon Sep 17 00:00:00 2001 From: Deet Mit Date: Wed, 12 Jan 2022 12:58:26 +0100 Subject: [PATCH] fix: edit and save circuit --- mesecons_autotools/book/circuit.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesecons_autotools/book/circuit.lua b/mesecons_autotools/book/circuit.lua index 48267c6..acb1434 100644 --- a/mesecons_autotools/book/circuit.lua +++ b/mesecons_autotools/book/circuit.lua @@ -126,12 +126,12 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) local info = {} local file = data.file - --[[ + info = read_table_from_file(file) info.title = fields.title info.text = fields.text save_table_to_file(file,info) - ]]-- + data.title = fields.title data.text = fields.text