From 4ff3ef790f4e22cc80986258f13f8a8643fda0dc Mon Sep 17 00:00:00 2001 From: Glease <4586901+Glease@users.noreply.github.com> Date: Sun, 3 Dec 2023 00:50:34 +0800 Subject: fix steam machine nei structure diagram (#789) * fix steam machine nei structure diagram this is caused by repeated failure of checkMachine(), which is caused by it not clearing special steam hatches * more special hatch clearing --- .../GregtechMetaTileEntity_LargerTurbineBase.java | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/common') diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GregtechMetaTileEntity_LargerTurbineBase.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GregtechMetaTileEntity_LargerTurbineBase.java index 389e267545..dc793a9282 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GregtechMetaTileEntity_LargerTurbineBase.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GregtechMetaTileEntity_LargerTurbineBase.java @@ -203,20 +203,14 @@ public abstract class GregtechMetaTileEntity_LargerTurbineBase extends return totalReduction / 4; } + @Override + public void clearHatches() { + super.clearHatches(); + mTurbineRotorHatches.clear(); + } + @Override public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) { - this.mDynamoHatches.clear(); - this.mTecTechDynamoHatches.clear(); - this.mTurbineRotorHatches.clear(); - this.mMaintenanceHatches.clear(); - if (requiresMufflers()) { - this.mMufflerHatches.clear(); - } - this.mInputBusses.clear(); - this.mInputHatches.clear(); - if (requiresOutputHatch()) { - this.mOutputHatches.clear(); - } // we do not check for casing count here. the bare minimal is 372 but we only require 360 boolean aStructure = checkPiece(STRUCTURE_PIECE_MAIN, 3, 3, 0); log("Structure Check: " + aStructure); -- cgit