Fix: player error

This commit is contained in:
Coder12a 2019-06-28 09:48:51 -05:00
parent b911039102
commit e63b07cb99

View File

@ -481,7 +481,8 @@ end
function factions.get_player_faction(playername) function factions.get_player_faction(playername)
local data = factions.players.get(playername) local data = factions.players.get(playername)
if data then if data then
local faction = factions.factions.get(data.faction) local facname = data.faction
local faction = factions.factions.get(facname)
return faction, facname return faction, facname
end end
return nil return nil