Merge pull request #11 from KevinRamharak/patch-3

Fixed wrong hologram color display + remove newlines in hologram
This commit is contained in:
Simon Fortier 2018-01-01 15:37:07 -05:00 committed by GitHub
commit a3c6329a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,7 +327,8 @@ function updateGameObject(object, responseObj) {
var color = false;
if (responseObj.holoC) {
color = "#" + Number(responseObj.holoC & 0xFFFFFF).toString(16)
color = (responseObj.holoC & 0xFFFFFF).toString(16)
color = "#" + ("000000".substr(color.length) + color);
}
if (responseObj.holoMode === 1) {