fix factions checkbox logic (thanks hysteria)

This commit is contained in:
tenplus1 2022-02-27 08:26:32 +00:00
parent a5a603be6c
commit 939f65db59

@ -713,7 +713,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
end
-- add faction members
if factions_available then
if factions_available and fields.faction_members ~= nil then
meta:set_int("faction_members", fields.faction_members == "true" and 1 or 0)
end