mirror of
https://notabug.org/TenPlus1/protector.git
synced 2025-01-08 10:57:29 +01:00
fix factions checkbox logic (thanks hysteria)
This commit is contained in:
parent
a5a603be6c
commit
939f65db59
2
init.lua
2
init.lua
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user