FIX: Light uses Math.abs for fill color now
This commit is contained in:
parent
d62aab85ea
commit
c9d0a36f92
@ -57,7 +57,7 @@ export class Light extends Part {
|
|||||||
if (this.defect) {
|
if (this.defect) {
|
||||||
return "#6e4122"
|
return "#6e4122"
|
||||||
}
|
}
|
||||||
return fadeColor(this.voltage / this.voltageMax, "#888", "#FF0");
|
return fadeColor(Math.abs(this.voltage) / this.voltageMax, "#888", "#FF0");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user