Skip to content

Commit 18ca5eb

Browse files
committed
Show 99% carpet (div-floor) instead of 100% when applicable
1 parent fc64337 commit 18ca5eb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/net/evmodder/evmod/onTick/TooltipMapLoreMetadata.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ private final String paletteSymbol(MapColorUtils.Palette palette){
9494
final String pxOrPercent = data.numCarpet() < 10 ? data.numCarpet()+"px" : percentCarpet+"%";
9595
lines.add(lines.removeLast().copy().append(" ("+pxOrPercent+" carpet)"));
9696
}
97+
else if(data.numCarpet() < numNonTransparentPx){
98+
lines.add(lines.removeLast().copy().append(" (99%)"));
99+
}
97100
}
98101
}
99102
// if(showStaircased){// If material 1st then staircased, on same line

0 commit comments

Comments
 (0)