aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkekzdealer <kekzdealer@gmail.com>2020-05-13 22:28:50 +0200
committerkekzdealer <kekzdealer@gmail.com>2020-05-13 22:28:50 +0200
commit9bd04d803cc40c8fe78c0c286de234757ec10806 (patch)
tree6025720590b810e518151c1f74f8f7bb7e266ec8 /src
parentbc20f34f726a696597c79619b2867682b3cce455 (diff)
downloadGT5-Unofficial-9bd04d803cc40c8fe78c0c286de234757ec10806.tar.gz
GT5-Unofficial-9bd04d803cc40c8fe78c0c286de234757ec10806.tar.bz2
GT5-Unofficial-9bd04d803cc40c8fe78c0c286de234757ec10806.zip
fixed LSC not checking that there's no glass mixing on the roof
Diffstat (limited to 'src')
-rw-r--r--src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java b/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
index bd1825660e..c1cd7d7e58 100644
--- a/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
+++ b/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
@@ -252,22 +252,26 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
for(int X = -2; X <= 2; X++) {
for(int Z = 0; Z >= -4; Z--) {
final Vector3ic offset = rotateOffsetVector(forgeDirection, X, Y, Z);
+ final int meta = thisController.getMetaIDOffset(offset.x(), offset.y(), offset.z());
// Check only outer ring, except when on roof height
if(Y < firstGlassHeight){
- if((X == -2 || X == 2) && (Z == -1 || Z == 4)){
- if(!thisController.getBlockOffset(offset.x(), offset.y(), offset.z()).getUnlocalizedName().equals(glassNameBorosilicate)){
- formationChecklist = false;
- } else {
- final int meta = thisController.getMetaIDOffset(offset.x(), offset.y(), offset.z());
- if(firstGlassMeta == -1){
+ if((X == -2 || X == 2) && (Z == -1 || Z == 4)) {
+ if(thisController.getBlockOffset(offset.x(), offset.y(), offset.z()).getUnlocalizedName().equals(glassNameBorosilicate)) {
+ if(firstGlassMeta == -1) {
firstGlassMeta = meta;
- } else if(meta != firstGlassMeta){
+ } else if(meta != firstGlassMeta) {
formationChecklist = false;
}
+ } else {
+ formationChecklist = false;
}
}
} else {
if (!thisController.getBlockOffset(offset.x(), offset.y(), offset.z()).getUnlocalizedName().equals(glassNameBorosilicate)) {
+ if(meta != firstGlassMeta) {
+ formationChecklist = false;
+ }
+ } else {
formationChecklist = false;
}
}