diff --git a/resources/assets/resonantinduction/textures/gui/batterybox_gui.png b/resources/assets/resonantinduction/textures/gui/batterybox_gui.png index b0e31bbc..c4b64bbd 100644 Binary files a/resources/assets/resonantinduction/textures/gui/batterybox_gui.png and b/resources/assets/resonantinduction/textures/gui/batterybox_gui.png differ diff --git a/src/resonantinduction/ResonantInduction.java b/src/resonantinduction/ResonantInduction.java index 50a6e902..ec87bbd8 100644 --- a/src/resonantinduction/ResonantInduction.java +++ b/src/resonantinduction/ResonantInduction.java @@ -62,7 +62,7 @@ public class ResonantInduction public static final String VERSION = MAJOR_VERSION + "." + MINOR_VERSION + "." + REVISION_VERSION; @Instance(ID) - public static ResonantInduction INSTNACE; + public static ResonantInduction INSTANCE; @SidedProxy(clientSide = ID + ".ClientProxy", serverSide = ID + ".CommonProxy") public static CommonProxy proxy; diff --git a/src/resonantinduction/battery/BlockBattery.java b/src/resonantinduction/battery/BlockBattery.java index ccc3b70a..26659af6 100644 --- a/src/resonantinduction/battery/BlockBattery.java +++ b/src/resonantinduction/battery/BlockBattery.java @@ -100,7 +100,7 @@ public class BlockBattery extends BlockBase implements ITileEntityProvider if(!world.isRemote) { - entityPlayer.openGui(ResonantInduction.INSTNACE, 0, world, x, y, z); + entityPlayer.openGui(ResonantInduction.INSTANCE, 0, world, x, y, z); } return true; diff --git a/src/resonantinduction/multimeter/BlockMultimeter.java b/src/resonantinduction/multimeter/BlockMultimeter.java index a0927087..3b353304 100644 --- a/src/resonantinduction/multimeter/BlockMultimeter.java +++ b/src/resonantinduction/multimeter/BlockMultimeter.java @@ -47,7 +47,7 @@ public class BlockMultimeter extends BlockBase implements ITileEntityProvider } else { - entityPlayer.openGui(ResonantInduction.INSTNACE, 0, world, x, y, z); + entityPlayer.openGui(ResonantInduction.INSTANCE, 0, world, x, y, z); } return true; diff --git a/src/resonantinduction/render/RenderBattery.java b/src/resonantinduction/render/RenderBattery.java index faa3b3a1..0f549ddc 100644 --- a/src/resonantinduction/render/RenderBattery.java +++ b/src/resonantinduction/render/RenderBattery.java @@ -71,9 +71,13 @@ public class RenderBattery extends TileEntitySpecialRenderer MODEL.render(0.0625f); GL11.glPopMatrix(); - int renderAmount = 16; - - itemRender: + int renderAmount = Math.min(((TileEntityBattery)t).clientCells, 16); + + if(renderAmount == 0) + { + return; + } + for (int i = 2; i < 6; i++) { ForgeDirection direction = ForgeDirection.getOrientation(i); @@ -130,9 +134,9 @@ public class RenderBattery extends TileEntitySpecialRenderer this.renderItemSimple(this.fakeBattery); GL11.glPopMatrix(); - if (renderAmount-- <= 0) + if (--renderAmount == 0) { - break itemRender; + return; } } }