From e63b07cb991c7665a651c696bceea19051f57c8d Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Fri, 28 Jun 2019 09:48:51 -0500 Subject: [PATCH] Fix: player error --- factions.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/factions.lua b/factions.lua index 37affa4..7e982e5 100644 --- a/factions.lua +++ b/factions.lua @@ -481,7 +481,8 @@ end function factions.get_player_faction(playername) local data = factions.players.get(playername) if data then - local faction = factions.factions.get(data.faction) + local facname = data.faction + local faction = factions.factions.get(facname) return faction, facname end return nil