Fixed casting issue in battery renderer code
This commit is contained in:
parent
164e4b205c
commit
fedda73826
1 changed files with 2 additions and 2 deletions
|
@ -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)))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue