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