aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/common')
-rw-r--r--src/main/java/gregtech/common/tileentities/machines/multi/MTEMultiSolidifier.java45
1 files changed, 24 insertions, 21 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/MTEMultiSolidifier.java b/src/main/java/gregtech/common/tileentities/machines/multi/MTEMultiSolidifier.java
index 5e750d5465..5597023871 100644
--- a/src/main/java/gregtech/common/tileentities/machines/multi/MTEMultiSolidifier.java
+++ b/src/main/java/gregtech/common/tileentities/machines/multi/MTEMultiSolidifier.java
@@ -248,7 +248,7 @@ public class MTEMultiSolidifier extends MTEExtendedPowerMultiBlockBase<MTEMultiS
int built = survivialBuildPiece(STRUCTURE_PIECE_MAIN, stackSize, 3, 4, 0, elementBudget, env, false, true);
if (built >= 0) return built;
int tTotalWidth = Math.min(stackSize.stackSize + 1, 6);
- for (int i = 1; i < tTotalWidth - 1; i++) {
+ for (int i = 1; i < tTotalWidth; i++) {
mWidth = i;
nWidth = i;
built = survivialBuildPiece(MS_LEFT_MID, stackSize, 3 + 2 * i, 4, 0, elementBudget, env, false, true);
@@ -256,26 +256,29 @@ public class MTEMultiSolidifier extends MTEExtendedPowerMultiBlockBase<MTEMultiS
built = survivialBuildPiece(MS_RIGHT_MID, stackSize, -2 - 2 * i, 4, 0, elementBudget, env, false, true);
if (built >= 0) return built;
}
- if (mWidth == tTotalWidth - 2) return survivialBuildPiece(
- MS_END,
- stackSize,
- (2 + tTotalWidth) * 2 - 4,
- 4,
- 0,
- elementBudget,
- env,
- false,
- true);
- else return survivialBuildPiece(
- MS_END,
- stackSize,
- (-2 - tTotalWidth) * 2 + 4,
- 4,
- 0,
- elementBudget,
- env,
- false,
- true);
+ if (mWidth == tTotalWidth - 1) {
+ built += survivialBuildPiece(
+ MS_END,
+ stackSize,
+ (3 + tTotalWidth) * 2 - 4,
+ 4,
+ 0,
+ elementBudget,
+ env,
+ false,
+ true);
+ built += survivialBuildPiece(
+ MS_END,
+ stackSize,
+ (-3 - tTotalWidth) * 2 + 4,
+ 4,
+ 0,
+ elementBudget,
+ env,
+ false,
+ true);
+ }
+ return built;
}
@Override