Comment enhancement

This commit is contained in:
DaSH 2026-04-28 10:24:17 +02:00
parent 92c86a5719
commit 7707d9e44c

View File

@ -113,6 +113,7 @@ public class RenderRBMKNumitron extends TileEntitySpecialRenderer {
}
//** Fill up to 7 characters */
//** For negative numbers when zeroes are added: put the zeroes between the - and hte number */
if ((value.length() < 7) && (value.charAt(0) == '-') && (unit.no_leading_zeroes == false)) {
value = value.substring(1);
while(value.length() < 6) value = "0" + value;