aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorminecraft7771 <maxim235@gmx.de>2022-11-20 17:52:58 +0100
committerminecraft7771 <maxim235@gmx.de>2022-11-20 17:52:58 +0100
commit6c06f0c3875258d2c256918d49c0de6d9bee896e (patch)
treef242ce54d2d90147bd4de8d96898dfabfa3a9499
parent79271c2b07b79e1fa330202f5bb09ce368271847 (diff)
downloadGT5-Unofficial-6c06f0c3875258d2c256918d49c0de6d9bee896e.tar.gz
GT5-Unofficial-6c06f0c3875258d2c256918d49c0de6d9bee896e.tar.bz2
GT5-Unofficial-6c06f0c3875258d2c256918d49c0de6d9bee896e.zip
Reset structure variables before checking the structure
-rw-r--r--src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java b/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
index b343371139..a989cc3886 100644
--- a/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
+++ b/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
@@ -525,6 +525,9 @@ public class GTMTE_LapotronicSuperCapacitor
mMaxEUIn = 0;
mMaxEUOut = 0;
+ glassTier = -1;
+ casingAmount = 0;
+
if (!checkPiece(STRUCTURE_PIECE_BASE, 2, 1, 0)) return false;
topState = TopState.NotTop; // need at least one layer of capacitor to form, obviously