From bb79d3f0d531383d0cd9da5d2c1bb3b83940a527 Mon Sep 17 00:00:00 2001 From: OmdaCZ <140348253+OmdaCZ@users.noreply.github.com> Date: Wed, 25 Sep 2024 21:23:32 +0200 Subject: Add survival autobuild for Bacterial Vat and fix it for Fluid Shaper (#3273) Co-authored-by: Mary Hopson Co-authored-by: GDCloud Co-authored-by: Dream Master Co-authored-by: Caedis Co-authored-by: NotAPenguin --- .../machines/multi/MTEMultiSolidifier.java | 45 ++++++++++++---------- 1 file changed, 24 insertions(+), 21 deletions(-) (limited to 'src/main/java/gregtech') 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= 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= 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 -- cgit