Added Grid quantity formatting for item counts over 1 billion. Fixes #2184
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
### 1.6.13
|
||||
- Fixed Interface with Crafting Upgrade being stuck if an earlier item configuration has missing items or fluids (raoulvdberge)
|
||||
- Added keybindings to open wireless items. The default one set to open a Wireless Grid is CTRL + G (raoulvdberge)
|
||||
- Added Grid quantity formatting for item counts over 1 billion (raoulvdberge)
|
||||
- Updated German translation (cydhra)
|
||||
- Updated Chinese translation (KoderX)
|
||||
- Fixed wrong item count for oredict patterns (the-eater)
|
||||
|
@@ -25,7 +25,9 @@ public class QuantityFormatter implements IQuantityFormatter {
|
||||
|
||||
@Override
|
||||
public String formatWithUnits(long qty) {
|
||||
if (qty >= 1_000_000) {
|
||||
if (qty >= 1_000_000_000) {
|
||||
return formatterWithUnits.format(Math.round((float) qty / 1_000_000_000)) + "B";
|
||||
} else if (qty >= 1_000_000) {
|
||||
float qtyShort = (float) qty / 1_000_000F;
|
||||
|
||||
if (qty >= 100_000_000) {
|
||||
|
Reference in New Issue
Block a user