diff options
author | kekzdealer <kekzdealer@gmail.com> | 2020-05-11 19:08:27 +0200 |
---|---|---|
committer | kekzdealer <kekzdealer@gmail.com> | 2020-05-11 19:08:27 +0200 |
commit | 5923da0b36c10fcd0cbfa183f8eb76ab36130d31 (patch) | |
tree | feaf125165dc8bee31b09ef826531851e1edf062 /src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java | |
parent | d2acf77bb8690decb78b8ac5a05762be30b04fd7 (diff) | |
download | GT5-Unofficial-5923da0b36c10fcd0cbfa183f8eb76ab36130d31.tar.gz GT5-Unofficial-5923da0b36c10fcd0cbfa183f8eb76ab36130d31.tar.bz2 GT5-Unofficial-5923da0b36c10fcd0cbfa183f8eb76ab36130d31.zip |
added after:dreamcraft dependency in attempt to fix assembly line recipes missing
Diffstat (limited to 'src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java')
-rw-r--r-- | src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java b/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java index 6c437ddfb7..a8341e3118 100644 --- a/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java +++ b/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java @@ -275,13 +275,15 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock // Make sure glass tier is T-2 of the highest tier capacitor in the structure // Count down from the highest tier until an entry is found + // Borosilicate glass after 5 are just recolours of 0 + final int colourCorrectedMeta = firstGlassMeta > 5 ? 0 : firstGlassMeta; for(int highestCapacitor = capacitors.length - 1; highestCapacitor >= 0; highestCapacitor--){ if(capacitors[highestCapacitor] > 0){ - if(!(firstGlassMeta >= capacitors[highestCapacitor])){ + if(!(colourCorrectedMeta >= capacitors[highestCapacitor])){ formationChecklist = false; KekzCore.LOGGER.info("LSC Glass is not of correct tier"); KekzCore.LOGGER.info("Highest capacitor tier (0 is IV): " + highestCapacitor); - KekzCore.LOGGER.info("Glass tier (0 is HV): " +firstGlassMeta); + KekzCore.LOGGER.info("Glass tier (0 is HV): " +colourCorrectedMeta); } break; } |