mirror of
https://github.com/simon987/Much-Assembly-Required-Frontend.git
synced 2025-04-19 18:46:41 +00:00
Merge pull request #11 from KevinRamharak/patch-3
Fixed wrong hologram color display + remove newlines in hologram
This commit is contained in:
commit
a3c6329a41
@ -327,7 +327,8 @@ function updateGameObject(object, responseObj) {
|
|||||||
|
|
||||||
var color = false;
|
var color = false;
|
||||||
if (responseObj.holoC) {
|
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) {
|
if (responseObj.holoMode === 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user