aboutsummaryrefslogtreecommitdiff
path: root/main/java/gregtech/common/covers
diff options
context:
space:
mode:
Diffstat (limited to 'main/java/gregtech/common/covers')
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java12
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_SolarPanel.java8
2 files changed, 4 insertions, 16 deletions
diff --git a/main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java b/main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java
index b1694be426..4a91015247 100644
--- a/main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java
+++ b/main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java
@@ -33,9 +33,9 @@ public class GT_Cover_LiquidMeter
}
tAll /= 14L;
if (tAll > 0L) {
- aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable == 0 ? 0 : tFull > 0L ? (byte)(int)(tFull / tAll + 1L) : (byte)(int)(15L - (tFull > 0L ? tFull / tAll + 1L : 0L)));
+ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable != 0 ? (byte)(int)(15L - (tFull <= 0L ? 0L : tFull / tAll + 1L)) : tFull <= 0L ? 0 : (byte)(int)(tFull / tAll + 1L));
} else {
- aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable == 0 ? 0 : 15));
+ aTileEntity.setOutputRedstoneSignal(aSide, ((byte)(aCoverVariable != 0 ? 15 : 0)));
}
}
else
@@ -94,10 +94,4 @@ public class GT_Cover_LiquidMeter
{
return 5;
}
-}
-
-
-/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
- * Qualified Name: gregtech.common.covers.GT_Cover_LiquidMeter
- * JD-Core Version: 0.7.0.1
- */ \ No newline at end of file
+} \ No newline at end of file
diff --git a/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java b/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java
index 38b227781d..308df2f129 100644
--- a/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java
+++ b/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java
@@ -38,10 +38,4 @@ public class GT_Cover_SolarPanel
{
return 1;
}
-}
-
-
-/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
- * Qualified Name: gregtech.common.covers.GT_Cover_SolarPanel
- * JD-Core Version: 0.7.0.1
- */ \ No newline at end of file
+} \ No newline at end of file