This commit is contained in:
DaSH 2026-05-01 00:26:59 +02:00
parent 820da70e5f
commit 915cfc45a5

View File

@ -62,15 +62,15 @@ public class RenderRBMKNumitron extends TileEntitySpecialRenderer {
// Overflow handling // Overflow handling
if (unit.value > 9999999) { if (unit.value > 9999999) {
value = "9999999"; value = "9999999";
break;
} }
// Underflow handling // Underflow handling
if (unit.value < -999999) { else if (unit.value < -999999) {
value = "-999999"; value = "-999999";
break;
} }
else {
value = Long.toString(unit.value); value = Long.toString(unit.value);
} }
}
//** Fill up to 7 characters */ //** Fill up to 7 characters */
//** For negative numbers when zeroes are added: put the zeroes between the '-' and the number */ //** For negative numbers when zeroes are added: put the zeroes between the '-' and the number */