FIX: Light uses Math.abs for fill color now

This commit is contained in:
Patrick Haßel 2025-02-03 16:09:55 +01:00
parent d62aab85ea
commit c9d0a36f92

View File

@ -57,7 +57,7 @@ export class Light extends Part {
if (this.defect) {
return "#6e4122"
}
return fadeColor(this.voltage / this.voltageMax, "#888", "#FF0");
return fadeColor(Math.abs(this.voltage) / this.voltageMax, "#888", "#FF0");
}
}