try to fix always disbanning
This commit is contained in:
parent
890dca7b4e
commit
492ead204e
@ -249,8 +249,9 @@ function factions.Faction.add_player(self, player, rank)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function factions.Faction.check_players_in_faction(self)
|
function factions.Faction.check_players_in_faction(self)
|
||||||
local players = #self.players
|
local factionRef = factions.get_faction(self)
|
||||||
if players < 1 then
|
local players = #factionRef.players
|
||||||
|
if players and players < 1 then
|
||||||
self:disband("Zero players on faction.")
|
self:disband("Zero players on faction.")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user