From 52c402faea7f3256e1bb466d2b5727d68beff362 Mon Sep 17 00:00:00 2001 From: Lewdcario Date: Sun, 28 Jan 2018 19:04:55 -0600 Subject: [PATCH] fix(resolveColor): not interpreting DEFAULT correctly --- src/client/ClientDataResolver.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/ClientDataResolver.js b/src/client/ClientDataResolver.js index 4f9978c8b..0379cf5c5 100644 --- a/src/client/ClientDataResolver.js +++ b/src/client/ClientDataResolver.js @@ -351,6 +351,7 @@ class ClientDataResolver { static resolveColor(color) { if (typeof color === 'string') { if (color === 'RANDOM') return Math.floor(Math.random() * (0xFFFFFF + 1)); + if (color === 'DEFAULT') return 0; color = Constants.Colors[color] || parseInt(color.replace('#', ''), 16); } else if (color instanceof Array) { color = (color[0] << 16) + (color[1] << 8) + color[2];