Fixed birthright descriptions causing errors when using other languages
This commit is contained in:
1 parent
ea7f2cacc2
commit
c649177a32
1 file changed
+2
-1
+2
-1
@@ -6,7 +6,8 @@ if REPENTANCE then
|
||||
end
|
||||
local function BirthrightCallback(descObj)
|
||||
local playerID = EID.player.SubType + 1
|
||||
local birthrightDesc = EID.descriptions[EID.Config["Language"]]["birthright"][playerID] or EID.descriptions["en_us"]["birthright"][playerID] or nil
|
||||
local translatedDesc = EID.descriptions[EID.Config["Language"]]["birthright"]
|
||||
local birthrightDesc = (translatedDesc and translatedDesc[playerID]) or EID.descriptions["en_us"]["birthright"][playerID] or nil
|
||||
if birthrightDesc ~=nil then
|
||||
local playerName = birthrightDesc[1] or EID.player:GetName()
|
||||
descObj.Description = "{{CustomTransformation}} {{ColorGray}}"..playerName.."{{CR}}#"..birthrightDesc[3]
|
||||
|
||||
Reference in new issue
Block a user