From 6a12f69212c14e325e292efa78c6dc721bdece0a Mon Sep 17 00:00:00 2001 From: RecursivePineapple Date: Sat, 28 Sep 2024 02:17:33 -0400 Subject: [PATCH] Remove steam blender hatches (#3293) --- .../multi/processing/steam/MTESteamMixer.java | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/steam/MTESteamMixer.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/steam/MTESteamMixer.java index edbbb574eec..5ff2600847e 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/steam/MTESteamMixer.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/steam/MTESteamMixer.java @@ -82,7 +82,7 @@ public String getMachineType() { return "Mixer"; } - private static final String STRUCTUR_PIECE_MAIN = "main"; + private static final String STRUCTURE_PIECE_MAIN = "main"; private IStructureDefinition STRUCTURE_DEFINITION = null; // spotless:off @@ -181,7 +181,7 @@ public IStructureDefinition getStructureDefinition() { STRUCTURE_DEFINITION = StructureDefinition.builder() - .addShape(STRUCTUR_PIECE_MAIN, transpose(shape)) + .addShape(STRUCTURE_PIECE_MAIN, transpose(shape)) .addElement( 'B', ofBlocksTiered( @@ -230,14 +230,20 @@ public IStructureDefinition getStructureDefinition() { @Override public void construct(ItemStack stackSize, boolean hintsOnly) { - this.buildPiece(STRUCTUR_PIECE_MAIN, stackSize, hintsOnly, HORIZONTAL_OFF_SET, VERTICAL_OFF_SET, DEPTH_OFF_SET); + this.buildPiece( + STRUCTURE_PIECE_MAIN, + stackSize, + hintsOnly, + HORIZONTAL_OFF_SET, + VERTICAL_OFF_SET, + DEPTH_OFF_SET); } @Override public int survivalConstruct(ItemStack stackSize, int elementBudget, ISurvivalBuildEnvironment env) { if (this.mMachine) return -1; return this.survivialBuildPiece( - STRUCTUR_PIECE_MAIN, + STRUCTURE_PIECE_MAIN, stackSize, HORIZONTAL_OFF_SET, VERTICAL_OFF_SET, @@ -254,16 +260,12 @@ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack a tierPipeCasing = -1; tierMachineCasing = -1; tCountCasing = 0; - if (!checkPiece(STRUCTUR_PIECE_MAIN, HORIZONTAL_OFF_SET, VERTICAL_OFF_SET, DEPTH_OFF_SET)) return false; + if (!checkPiece(STRUCTURE_PIECE_MAIN, HORIZONTAL_OFF_SET, VERTICAL_OFF_SET, DEPTH_OFF_SET)) return false; if (tierGearBoxCasing < 0 && tierPipeCasing < 0 && tierMachineCasing < 0) return false; if (tierGearBoxCasing == 1 && tierPipeCasing == 1 && tierMachineCasing == 1 && tCountCasing >= 90 - && !mSteamInputFluids.isEmpty() - && !mSteamInputs.isEmpty() - && !mSteamOutputs.isEmpty() - && !mInputHatches.isEmpty() - && !mOutputHatches.isEmpty()) { + && !mSteamInputFluids.isEmpty()) { updateHatchTexture(); tierMachine = 1; return true; @@ -271,11 +273,7 @@ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack a if (tierGearBoxCasing == 2 && tierPipeCasing == 2 && tierMachineCasing == 2 && tCountCasing >= 90 - && !mSteamInputFluids.isEmpty() - && !mSteamInputs.isEmpty() - && !mSteamOutputs.isEmpty() - && !mInputHatches.isEmpty() - && !mOutputHatches.isEmpty()) { + && !mSteamInputFluids.isEmpty()) { updateHatchTexture(); tierMachine = 2; return true;