|
1 | 1 | package extracells.item; |
2 | 2 |
|
3 | | -import static appeng.util.Utility.formatNumbers; |
4 | | - |
5 | 3 | import appeng.api.AEApi; |
6 | 4 | import appeng.api.config.FuzzyMode; |
7 | 5 | import appeng.api.config.IncludeExclude; |
|
23 | 21 | import cpw.mods.fml.relauncher.SideOnly; |
24 | 22 | import extracells.api.IStorageCellAdvanced; |
25 | 23 | import extracells.inventory.AdvancedCellInventoryHandler; |
| 24 | +import java.text.NumberFormat; |
26 | 25 | import java.util.EnumSet; |
27 | 26 | import java.util.List; |
28 | 27 | import java.util.Random; |
@@ -66,17 +65,19 @@ public void addCheckedInformation( |
66 | 65 | final ICellInventory cellInventory = handler.getCellInv(); |
67 | 66 |
|
68 | 67 | if (cellInventory != null) { |
69 | | - lines.add(formatNumbers(cellInventory.getUsedBytes()) + " " + GuiText.Of.getLocal() + ' ' |
70 | | - + formatNumbers(cellInventory.getTotalBytes()) + ' ' + GuiText.BytesUsed.getLocal()); |
| 68 | + lines.add(NumberFormat.getInstance().format(cellInventory.getUsedBytes()) + " " + GuiText.Of.getLocal() |
| 69 | + + ' ' + NumberFormat.getInstance().format(cellInventory.getTotalBytes()) + ' ' |
| 70 | + + GuiText.BytesUsed.getLocal()); |
71 | 71 |
|
72 | 72 | format(lines, handler, cellInventory); |
73 | 73 | } |
74 | 74 | } |
75 | 75 | } |
76 | 76 |
|
77 | 77 | static void format(List<String> lines, ICellInventoryHandler handler, ICellInventory cellInventory) { |
78 | | - lines.add(formatNumbers(cellInventory.getStoredItemTypes()) + " " + GuiText.Of.getLocal() + ' ' |
79 | | - + formatNumbers(cellInventory.getTotalItemTypes()) + ' ' + GuiText.Types.getLocal()); |
| 78 | + lines.add(NumberFormat.getInstance().format(cellInventory.getStoredItemTypes()) + " " + GuiText.Of.getLocal() |
| 79 | + + ' ' + NumberFormat.getInstance().format(cellInventory.getTotalItemTypes()) + ' ' |
| 80 | + + GuiText.Types.getLocal()); |
80 | 81 |
|
81 | 82 | if (handler.isPreformatted()) { |
82 | 83 | String filter = cellInventory.getOreFilter(); |
|
0 commit comments