If another form's data was submitted, erase fsc data for this player.

This commit is contained in:
Auke Kok 2018-01-04 12:49:50 -08:00
parent 97e44dce38
commit c0dde0e545

View File

@ -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