added missing nil check
This commit is contained in:
@@ -177,8 +177,10 @@ local protector_formspec = function(meta)
|
|||||||
checkbox_faction = true
|
checkbox_faction = true
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if next(factions.get_player_faction(meta:get_string("owner"))) then
|
if factions.get_player_factions(meta:get_string("owner")) ~= nil then
|
||||||
checkbox_faction = true
|
if next(factions.get_player_faction(meta:get_string("owner"))) then
|
||||||
|
checkbox_faction = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user