diff options
author | Martin Robertz <dream-master@gmx.net> | 2022-11-20 19:30:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-20 19:30:59 +0100 |
commit | ed3b559004eef56cadc4382b1db2504c2fdf83a3 (patch) | |
tree | f242ce54d2d90147bd4de8d96898dfabfa3a9499 | |
parent | 79271c2b07b79e1fa330202f5bb09ce368271847 (diff) | |
parent | 6c06f0c3875258d2c256918d49c0de6d9bee896e (diff) | |
download | GT5-Unofficial-ed3b559004eef56cadc4382b1db2504c2fdf83a3.tar.gz GT5-Unofficial-ed3b559004eef56cadc4382b1db2504c2fdf83a3.tar.bz2 GT5-Unofficial-ed3b559004eef56cadc4382b1db2504c2fdf83a3.zip |
Merge pull request #48 from GTNewHorizons/FixLSCGlass
Reset structure variables before checking the structure
-rw-r--r-- | src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java | 3 |
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 |