aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/detrav/gui
diff options
context:
space:
mode:
authorDetrav <witalyezep@gmail.com>2016-04-08 01:15:17 +0300
committerDetrav <witalyezep@gmail.com>2016-04-08 01:15:17 +0300
commitaff299344394d62f7bc830be5f6c240e8e6cb2c4 (patch)
tree4576b576e4845efd4e2625e4178accf2538a883a /src/main/java/com/detrav/gui
parentf2968e250321b73f3c6ede6646ca156352e81d0f (diff)
downloadGT5-Unofficial-aff299344394d62f7bc830be5f6c240e8e6cb2c4.tar.gz
GT5-Unofficial-aff299344394d62f7bc830be5f6c240e8e6cb2c4.tar.bz2
GT5-Unofficial-aff299344394d62f7bc830be5f6c240e8e6cb2c4.zip
fix creative charger
Diffstat (limited to 'src/main/java/com/detrav/gui')
-rw-r--r--src/main/java/com/detrav/gui/DetravPortableChargerGui.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/detrav/gui/DetravPortableChargerGui.java b/src/main/java/com/detrav/gui/DetravPortableChargerGui.java
index 67c33b25c1..858b6dc09e 100644
--- a/src/main/java/com/detrav/gui/DetravPortableChargerGui.java
+++ b/src/main/java/com/detrav/gui/DetravPortableChargerGui.java
@@ -46,6 +46,7 @@ public class DetravPortableChargerGui extends GuiContainer {
//EnumChatFormatting.AQUA + "" + + EnumChatFormatting.GRAY);
Long[] tStats = DetravMetaGeneratedTool01.INSTANCE.getElectricStats(mItem);
+ if(tStats==null) return;
//long tCharge = DetravMetaGeneratedTool01.INSTANCE.getRealCharge(mItem);
long loss = DetravMetaGeneratedTool01.INSTANCE.getElectricStatsLoss(mItem);
fontRendererObj.drawString(GT_Utility.formatNumbers(charge) + " / " + GT_Utility.formatNumbers(Math.abs(tStats[0])) + " EU", 8, 14, 4210752);