diff options
author | David Vierra <codewarrior@hawaii.rr.com> | 2018-01-27 21:13:13 -1000 |
---|---|---|
committer | David Vierra <codewarrior@hawaii.rr.com> | 2018-01-28 03:06:58 -1000 |
commit | f7594feadd1c947eccf7e3c611b0b3ec75cd16ea (patch) | |
tree | 8e1eaa3096876e45d7aa914ae78f3e7edbeaca76 /src/Java/gtPlusPlus/xmod/gregtech | |
parent | 0d8dc3b625c83c80e7a20b6b2233d972cb2f2af2 (diff) | |
download | GT5-Unofficial-f7594feadd1c947eccf7e3c611b0b3ec75cd16ea.tar.gz GT5-Unofficial-f7594feadd1c947eccf7e3c611b0b3ec75cd16ea.tar.bz2 GT5-Unofficial-f7594feadd1c947eccf7e3c611b0b3ec75cd16ea.zip |
Fix #184 - Large Thermal Centrifuge not completing multiblock
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialThermalCentrifuge.java | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialThermalCentrifuge.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialThermalCentrifuge.java index 64a36900fe..7061a2a5b9 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialThermalCentrifuge.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialThermalCentrifuge.java @@ -140,26 +140,28 @@ extends GregtechMeta_MultiBlockBase { int tAmount = 0; for (int i = -1; i < 2; ++i) { for (int j = -1; j < 2; ++j) { - for (int h = -1; h < 0; ++h) { - if ((h != 0) || ((((xDir + i != 0) || (zDir + j != 0))) && (((i != 0) || (j != 0))))) { - IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, - zDir + j); - - Logger.INFO("------------------"); - Logger.INFO("xDir: "+xDir+" | zDir: "+zDir); - Logger.INFO("i: "+i+" | j: "+j+" | h: "+h); - if (!addToMachineList(tTileEntity)) { - Block tBlock = aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j); - byte tMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j); - if ((((tBlock != ModBlocks.blockCasings2Misc) || (tMeta != 0))) - && (((tBlock != GregTech_API.sBlockCasings3) || (tMeta != 9)))) { - Logger.INFO("Wrong Block?"); - return false; - } - tAmount++; + for (int h = -1; h < 1; ++h) { + if ((xDir + i == 0) && (zDir + j == 0) && (h == 0)) continue; // controller block + + IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, + zDir + j); + + Logger.INFO("------------------"); + Logger.INFO("xDir: " + xDir + " | zDir: " + zDir); + Logger.INFO("i: " + i + " | j: " + j + " | h: " + h); + if ((h == 0) || !addToMachineList(tTileEntity)) { // only bottom layer allows machine parts + // top layer, or not machine part, must be casing + Block tBlock = aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j); + byte tMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j); + if ((((tBlock != ModBlocks.blockCasings2Misc) || (tMeta != 0))) + && (((tBlock != GregTech_API.sBlockCasings3) || (tMeta != 9)))) { + Logger.INFO("Wrong Block?"); + return false; } + tAmount++; } } + } } Logger.INFO("------------------"); |