diff options
author | Maxim <maxim235@gmx.de> | 2023-01-14 23:20:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-14 23:20:14 +0100 |
commit | ce6f1ccf3533d8df815e1eca64184f86a6717b84 (patch) | |
tree | 408cc855403237af0c87c67f39aa037c0dc877c4 | |
parent | 04c50604546e5df12c84ee264b595d06eb904184 (diff) | |
download | GT5-Unofficial-ce6f1ccf3533d8df815e1eca64184f86a6717b84.tar.gz GT5-Unofficial-ce6f1ccf3533d8df815e1eca64184f86a6717b84.tar.bz2 GT5-Unofficial-ce6f1ccf3533d8df815e1eca64184f86a6717b84.zip |
Fix mabs structure persistance (#498)
* Reset structure variables before checking structure
* Fix persistance of structure variables
-rw-r--r-- | src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java | 6 |
1 files 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; } |