Skip to content

Commit 4d11877

Browse files
authored
Fix build (#74)
1 parent e9fbc8d commit 4d11877

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

dependencies.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Add your dependencies here
22

33
dependencies {
4-
compile('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-107-GTNH:dev')
4+
compile('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-118-GTNH:dev')
55

66
compileOnly('com.github.GTNewHorizons:NotEnoughItems:2.2.12-GTNH:dev') {transitive=false}
77
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.3.16-GTNH:dev') {transitive=false}

src/main/scala/extracells/item/ItemAdvancedStorageCell.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package extracells.item;
22

3-
import static appeng.util.Utility.formatNumbers;
4-
53
import appeng.api.AEApi;
64
import appeng.api.config.FuzzyMode;
75
import appeng.api.config.IncludeExclude;
@@ -23,6 +21,7 @@
2321
import cpw.mods.fml.relauncher.SideOnly;
2422
import extracells.api.IStorageCellAdvanced;
2523
import extracells.inventory.AdvancedCellInventoryHandler;
24+
import java.text.NumberFormat;
2625
import java.util.EnumSet;
2726
import java.util.List;
2827
import java.util.Random;
@@ -66,17 +65,19 @@ public void addCheckedInformation(
6665
final ICellInventory cellInventory = handler.getCellInv();
6766

6867
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());
7171

7272
format(lines, handler, cellInventory);
7373
}
7474
}
7575
}
7676

7777
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());
8081

8182
if (handler.isPreformatted()) {
8283
String filter = cellInventory.getOreFilter();

0 commit comments

Comments
 (0)