From d2bab21d7a334f5bd2cd610fe15a25f5515221fb Mon Sep 17 00:00:00 2001 From: Flamanis Date: Thu, 26 Nov 2020 14:11:21 -0600 Subject: [PATCH] GetClassColor custom actor support + Fix Allow for GetClassColor to return a custom color from custom actors. And fix the final else not returning anything. --- functions/playerclass.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/playerclass.lua b/functions/playerclass.lua index a76c5554..a3aef963 100644 --- a/functions/playerclass.lua +++ b/functions/playerclass.lua @@ -117,8 +117,10 @@ do elseif (type (class) == "string") then return unpack (_detalhes.class_colors [class] or default_color) + elseif (self.color) then + return unpack(self.color) else - unpack (default_color) + return unpack (default_color) end end