From ce6f1ccf3533d8df815e1eca64184f86a6717b84 Mon Sep 17 00:00:00 2001 From: Maxim Date: Sat, 14 Jan 2023 23:20:14 +0100 Subject: Fix mabs structure persistance (#498) * Reset structure variables before checking structure * Fix persistance of structure variables --- .../mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java index 80abaa270f..702dc467be 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java @@ -409,12 +409,14 @@ public class GregTechMetaTileEntity_MegaAlloyBlastSmelter @Override public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) { + glassTier = -1; + coilLevel = HeatingCoilLevel.None; if (!checkPiece("main", 5, 16, 0)) return false; if (hasNormalCoils) coilLevel = HeatingCoilLevel.None; if (mMaintenanceHatches.size() != 1) return false; if (mMufflerHatches.size() != 45) return false; - if (this.glassTier < 10 && !this.mEnergyHatches.isEmpty()) { - for (GT_MetaTileEntity_Hatch_Energy hatchEnergy : this.mEnergyHatches) { + if (this.glassTier < 10 && !getExoticAndNormalEnergyHatchList().isEmpty()) { + for (GT_MetaTileEntity_Hatch hatchEnergy : getExoticAndNormalEnergyHatchList()) { if (this.glassTier < hatchEnergy.mTier) { return false; } -- cgit