forked from mtcontrib/factions
Fix: player error
This commit is contained in:
parent
b911039102
commit
e63b07cb99
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user