Removed println, fixed possible crash

This commit is contained in:
Aidan C. Brady 2014-01-03 08:34:56 -05:00
parent c0dba3c366
commit b538565846
2 changed files with 8 additions and 1 deletions

View file

@ -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);
}
}

View file

@ -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)