Skip to content

Commit

Permalink
Stringify the cached value too
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonsturgeon committed Feb 15, 2021
1 parent 070ba7e commit 3899a32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion moon/cfc_chat_transit/server/init.moon
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ ChatTransit.GetTeamColorCode = (teamName) =>
r, g, b = color\Unpack!

calculated = lshift(r, 16) + lshift(g, 8) + b
calculated = tostring calculated

@TeamColorCache[teamName] = calculated

tostring calculated
calculated

ChatTransit.ReceiveMessage = (ply, text, teamChat) =>
return if teamChat
Expand Down

0 comments on commit 3899a32

Please sign in to comment.