aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2022-11-20 19:30:59 +0100
committerGitHub <noreply@github.com>2022-11-20 19:30:59 +0100
commited3b559004eef56cadc4382b1db2504c2fdf83a3 (patch)
treef242ce54d2d90147bd4de8d96898dfabfa3a9499
parent79271c2b07b79e1fa330202f5bb09ce368271847 (diff)
parent6c06f0c3875258d2c256918d49c0de6d9bee896e (diff)
downloadGT5-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.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