Player leave bugfix.
This commit is contained in:
parent
33b9d59fa7
commit
e7fff79b78
@ -253,10 +253,11 @@ 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
|
for i,k in pairs(self.players) do
|
||||||
if players < 1 then
|
return true
|
||||||
self:disband("Zero players on faction.")
|
|
||||||
end
|
end
|
||||||
|
self:disband("Zero players on faction.")
|
||||||
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
function factions.Faction.remove_player(self, player)
|
function factions.Faction.remove_player(self, player)
|
||||||
|
Loading…
Reference in New Issue
Block a user