From 6c06f0c3875258d2c256918d49c0de6d9bee896e Mon Sep 17 00:00:00 2001 From: minecraft7771 Date: Sun, 20 Nov 2022 17:52:58 +0100 Subject: Reset structure variables before checking the structure --- src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java') 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 -- cgit