Fixes #293 and removed java doc

This commit is contained in:
modmuss50 2015-12-05 20:23:40 +00:00
parent 3db2db3c7c
commit cf36bc9dc1
3 changed files with 9 additions and 7 deletions

View file

@ -83,6 +83,9 @@ public class TileGrinder extends TilePowerAcceptor implements IWrenchable, IFlui
for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
TileEntity tileEntity = worldObj.getTileEntity(xCoord + direction.offsetX, yCoord + direction.offsetY, zCoord + direction.offsetZ);
if (tileEntity instanceof TileMachineCasing) {
if(!((TileMachineCasing) tileEntity).isConnected()){
return false;
}
if ((tileEntity.getBlockType() instanceof BlockMachineCasing)) {
int heat;
heat = BlockMachineCasing.getHeatFromMeta(tileEntity.getBlockMetadata());

View file

@ -70,6 +70,9 @@ public class TileImplosionCompressor extends TilePowerAcceptor implements IWrenc
for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
TileEntity tileEntity = worldObj.getTileEntity(xCoord + direction.offsetX, yCoord + direction.offsetY, zCoord + direction.offsetZ);
if (tileEntity instanceof TileMachineCasing) {
if(!((TileMachineCasing) tileEntity).isConnected()){
return false;
}
if ((tileEntity.getBlockType() instanceof BlockMachineCasing)) {
int heat;
heat = BlockMachineCasing.getHeatFromMeta(tileEntity.getBlockMetadata());