added missing nil check
This commit is contained in:
parent
5672606432
commit
6bca4ffdff
2
init.lua
2
init.lua
|
@ -177,11 +177,13 @@ local protector_formspec = function(meta)
|
|||
checkbox_faction = true
|
||||
end
|
||||
else
|
||||
if factions.get_player_factions(meta:get_string("owner")) ~= nil then
|
||||
if next(factions.get_player_faction(meta:get_string("owner"))) then
|
||||
checkbox_faction = true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if checkbox_faction then
|
||||
|
||||
formspec = formspec .. "checkbox[0,5;faction_members;"
|
||||
|
|
Loading…
Reference in New Issue