mirror of
https://notabug.org/TenPlus1/protector.git
synced 2024-12-05 03:33:48 +01:00
added missing nil check
This commit is contained in:
parent
5672606432
commit
6bca4ffdff
6
init.lua
6
init.lua
@ -177,8 +177,10 @@ local protector_formspec = function(meta)
|
||||
checkbox_faction = true
|
||||
end
|
||||
else
|
||||
if next(factions.get_player_faction(meta:get_string("owner"))) then
|
||||
checkbox_faction = true
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user