GetClassColor custom actor support + Fix
Allow for GetClassColor to return a custom color from custom actors. And fix the final else not returning anything.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user