aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbotn365 <Krampus.sack.never@gmail.com>2020-03-25 09:55:39 +0100
committerbotn365 <Krampus.sack.never@gmail.com>2020-03-25 09:55:39 +0100
commite936a0be7639aca3a213b9c50eeb36f9fd736bea (patch)
tree9fd4fe0c2a3e27d00a616d10925c538bbfd2f5b0 /src
parent0c2fab19086ea35e83d6f2900ba4db53303551b9 (diff)
downloadGT5-Unofficial-e936a0be7639aca3a213b9c50eeb36f9fd736bea.tar.gz
GT5-Unofficial-e936a0be7639aca3a213b9c50eeb36f9fd736bea.tar.bz2
GT5-Unofficial-e936a0be7639aca3a213b9c50eeb36f9fd736bea.zip
fix extruder not counting back center casing
Diffstat (limited to 'src')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialExtruder.java29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialExtruder.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialExtruder.java
index 9885db20d6..f67513deb9 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialExtruder.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialExtruder.java
@@ -174,22 +174,21 @@ extends GregtechMeta_MultiBlockBase {
final int tZ = this.getBaseMetaTileEntity().getZCoord();
for (byte i = -1; i < 2; i = (byte) (i + 1)) {
for (byte j = -1; j < 2; j = (byte) (j + 1)) {
- if ((i != 0) || (j != 0)) {
- for (byte k = 0; k < 5; k = (byte) (k + 1)) {
-
- Block aBlock = this.getBaseMetaTileEntity().getBlock(tX + (tSide == 5 ? k : tSide == 4 ? -k : i), tY + j, tZ + (tSide == 2 ? -k : tSide == 3 ? k : i));
- int aMeta = this.getBaseMetaTileEntity().getMetaID(tX + (tSide == 5 ? k : tSide == 4 ? -k : i), tY + j, tZ + (tSide == 2 ? -k : tSide == 3 ? k : i));
- IGregTechTileEntity aTile = this.getBaseMetaTileEntity().getIGregTechTileEntity(tX + (tSide == 5 ? k : tSide == 4 ? -k : i), tY + j, tZ + (tSide == 2 ? -k : tSide == 3 ? k : i));
- if (!isValidBlockForStructure(aTile, getCasingTextureIndex(), true, aBlock, aMeta, getCasingBlock(), getCasingMeta())) {
- log("Bad Casing on Extruder.");
- return false;
- }
- else {
- if (aTile == null) {
- aCasingCount++;
- }
- }
+ for (byte k = 0; k < 5; k = (byte) (k + 1)) {
+ if (j == 0 && i ==0)
+ k = 4;
+ Block aBlock = this.getBaseMetaTileEntity().getBlock(tX + (tSide == 5 ? k : tSide == 4 ? -k : i), tY + j, tZ + (tSide == 2 ? -k : tSide == 3 ? k : i));
+ int aMeta = this.getBaseMetaTileEntity().getMetaID(tX + (tSide == 5 ? k : tSide == 4 ? -k : i), tY + j, tZ + (tSide == 2 ? -k : tSide == 3 ? k : i));
+ IGregTechTileEntity aTile = this.getBaseMetaTileEntity().getIGregTechTileEntity(tX + (tSide == 5 ? k : tSide == 4 ? -k : i), tY + j, tZ + (tSide == 2 ? -k : tSide == 3 ? k : i));
+ if (!isValidBlockForStructure(aTile, getCasingTextureIndex(), true, aBlock, aMeta, getCasingBlock(), getCasingMeta())) {
+ log("Bad Casing on Extruder.");
+ return false;
}
+ else {
+ if (aTile == null) {
+ aCasingCount++;
+ }
+ }
}
}
}