diff --git a/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/grid/handler/ItemGridHandler.java b/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/grid/handler/ItemGridHandler.java index 86f971400..fbaf08153 100644 --- a/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/grid/handler/ItemGridHandler.java +++ b/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/grid/handler/ItemGridHandler.java @@ -95,7 +95,7 @@ public class ItemGridHandler implements IItemGridHandler { INetworkItem networkItem = network.getNetworkItemHandler().getItem(player); if (networkItem != null && networkItem instanceof NetworkItemWirelessGrid) { - ((NetworkItemWirelessGrid) networkItem).drainEnergy(RS.INSTANCE.config.wirelessGridExtractUsage); + ((NetworkItemWirelessGrid) networkItem).drainEnergy(((NetworkItemWirelessGrid) networkItem).getExtractUsage()); } } } @@ -111,7 +111,7 @@ public class ItemGridHandler implements IItemGridHandler { INetworkItem networkItem = network.getNetworkItemHandler().getItem(player); if (networkItem != null && networkItem instanceof NetworkItemWirelessGrid) { - ((NetworkItemWirelessGrid) networkItem).drainEnergy(RS.INSTANCE.config.wirelessGridInsertUsage); + ((NetworkItemWirelessGrid) networkItem).drainEnergy(((NetworkItemWirelessGrid) networkItem).getInsertUsage()); } return remainder; @@ -145,7 +145,7 @@ public class ItemGridHandler implements IItemGridHandler { INetworkItem networkItem = network.getNetworkItemHandler().getItem(player); if (networkItem != null && networkItem instanceof NetworkItemWirelessGrid) { - ((NetworkItemWirelessGrid) networkItem).drainEnergy(RS.INSTANCE.config.wirelessGridInsertUsage); + ((NetworkItemWirelessGrid) networkItem).drainEnergy(((NetworkItemWirelessGrid) networkItem).getInsertUsage()); } } diff --git a/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/item/NetworkItemWirelessGrid.java b/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/item/NetworkItemWirelessGrid.java index a91636f19..f2b02a532 100755 --- a/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/item/NetworkItemWirelessGrid.java +++ b/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/item/NetworkItemWirelessGrid.java @@ -67,4 +67,12 @@ public class NetworkItemWirelessGrid implements INetworkItem { } } } + + public int getInsertUsage() { + return RS.INSTANCE.config.wirelessGridInsertUsage; + } + + public int getExtractUsage() { + return RS.INSTANCE.config.wirelessGridExtractUsage; + } } \ No newline at end of file