From c0dde0e54593fb01e7c1354a6e67a2c3734a5581 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 4 Jan 2018 12:49:50 -0800 Subject: [PATCH] If another form's data was submitted, erase fsc data for this player. --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index 9c9010f..1afc549 100644 --- a/init.lua +++ b/init.lua @@ -54,6 +54,10 @@ end minetest.register_on_player_receive_fields(function(player, formname, fields) if not formname:match("fsc:") then + -- invalidate fsc data for this player + local name = player:get_player_name() + _data[name] = nil + return false end