From fedda73826947bc80db83f66bdb1dfa7b5c518b3 Mon Sep 17 00:00:00 2001 From: Robert S Date: Tue, 4 Nov 2014 22:27:21 -0500 Subject: [PATCH] Fixed casting issue in battery renderer code --- .../resonantinduction/electrical/battery/TileBattery.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/resonantinduction/electrical/battery/TileBattery.scala b/src/main/scala/resonantinduction/electrical/battery/TileBattery.scala index 98ebc4148..1df00fe0a 100644 --- a/src/main/scala/resonantinduction/electrical/battery/TileBattery.scala +++ b/src/main/scala/resonantinduction/electrical/battery/TileBattery.scala @@ -9,7 +9,7 @@ import net.minecraft.entity.EntityLivingBase import net.minecraft.entity.player.EntityPlayer import net.minecraft.item.ItemStack import net.minecraft.util.ResourceLocation -import net.minecraftforge.client.model.{AdvancedModelLoader, IModelCustom} +import net.minecraftforge.client.model.AdvancedModelLoader import net.minecraftforge.common.util.ForgeDirection import org.lwjgl.opengl.GL11 import org.lwjgl.opengl.GL11._ @@ -203,7 +203,7 @@ class TileBattery extends TileAdvanced(Material.iron) with TElectric with IPacke { if (sideCheck.offsetY == 0) { - if (center.add(sideCheck).isInstanceOf[TileBattery]) + if (center.add(sideCheck).getTileEntity.isInstanceOf[TileBattery]) { connectionParts.removeAll(Arrays.asList(connectionPartToEnable(sideCheck.ordinal))) }