Fixes #304
This commit is contained in:
parent
5324016199
commit
96a7b56b5f
4 changed files with 50 additions and 15 deletions
|
@ -27,6 +27,7 @@ public class TileGrinder extends TilePowerAcceptor implements IWrenchable, IFlui
|
|||
public Inventory inventory = new Inventory(6, "TileGrinder", 64);
|
||||
public Tank tank = new Tank("TileGrinder", 16000, this);
|
||||
public RecipeCrafter crafter;
|
||||
public int connectionStatus;
|
||||
|
||||
public TileGrinder() {
|
||||
super(ConfigTechReborn.CentrifugeTier);
|
||||
|
@ -83,21 +84,13 @@ 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());
|
||||
Location location = new Location(xCoord, yCoord, zCoord, direction);
|
||||
location.modifyPositionFromSide(direction, 1);
|
||||
if (worldObj.getBlock(location.getX(), location.getY(), location.getZ()).getUnlocalizedName().equals("tile.lava")) {
|
||||
heat += 500;
|
||||
}
|
||||
if(((TileMachineCasing) tileEntity).isConnected() && ((TileMachineCasing) tileEntity).getMultiblockController().isAssembled() && ((TileMachineCasing) tileEntity).getMultiblockController().height == 3){
|
||||
connectionStatus = 1;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
connectionStatus = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue