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:
Flamanis
2020-11-26 14:11:21 -06:00
committed by GitHub
parent 638cf0cc74
commit d2bab21d7a
+3 -1
View File
@@ -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