Player leave bugfix.

This commit is contained in:
Coder12a 2018-10-27 10:51:39 -05:00
parent 33b9d59fa7
commit e7fff79b78
1 changed files with 4 additions and 3 deletions

View File

@ -253,10 +253,11 @@ function factions.Faction.add_player(self, player, rank)
end
function factions.Faction.check_players_in_faction(self)
local players = #self.players
if players < 1 then
self:disband("Zero players on faction.")
for i,k in pairs(self.players) do
return true
end
self:disband("Zero players on faction.")
return false
end
function factions.Faction.remove_player(self, player)