From b5385658463be8c805c560ed717259ec5c933b64 Mon Sep 17 00:00:00 2001 From: "Aidan C. Brady" Date: Fri, 3 Jan 2014 08:34:56 -0500 Subject: [PATCH] Removed println, fixed possible crash --- .../tileentity/TileEntityAdvancedBoundingBlock.java | 8 ++++++++ .../tileentity/TileEntityElectrolyticSeparator.java | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/common/mekanism/common/tileentity/TileEntityAdvancedBoundingBlock.java b/common/mekanism/common/tileentity/TileEntityAdvancedBoundingBlock.java index e72927795..76103fe52 100644 --- a/common/mekanism/common/tileentity/TileEntityAdvancedBoundingBlock.java +++ b/common/mekanism/common/tileentity/TileEntityAdvancedBoundingBlock.java @@ -369,6 +369,14 @@ public class TileEntityAdvancedBoundingBlock extends TileEntityBoundingBlock imp public IAdvancedBoundingBlock getInv() { + TileEntity tile = new Coord4D(mainX, mainY, mainZ, worldObj.provider.dimensionId).getTileEntity(worldObj); + + if(!(tile instanceof IAdvancedBoundingBlock)) + { + worldObj.setBlockToAir(xCoord, yCoord, zCoord); + return null; + } + return (IAdvancedBoundingBlock)new Coord4D(mainX, mainY, mainZ, worldObj.provider.dimensionId).getTileEntity(worldObj); } } diff --git a/common/mekanism/common/tileentity/TileEntityElectrolyticSeparator.java b/common/mekanism/common/tileentity/TileEntityElectrolyticSeparator.java index b41e78e74..184269b7f 100644 --- a/common/mekanism/common/tileentity/TileEntityElectrolyticSeparator.java +++ b/common/mekanism/common/tileentity/TileEntityElectrolyticSeparator.java @@ -229,7 +229,6 @@ public class TileEntityElectrolyticSeparator extends TileEntityElectricBlock imp double z = zCoord + (side.offsetZ == 0 ? 0.5 : Math.max(side.offsetZ, 0)); worldObj.spawnParticle("smoke", x, yCoord + 0.5, z, 0.0D, 0.0D, 0.0D); - System.out.println(x + " " + (yCoord+0.5) + " " + z); } else if(type == 1)