diff options
| author | Blood-Asp <Blood@Asp> | 2015-06-27 03:26:08 +0200 |
|---|---|---|
| committer | Blood-Asp <Blood@Asp> | 2015-06-27 03:26:08 +0200 |
| commit | 8198a51aeef641fd25d2b77f776c7640dd3f84a9 (patch) | |
| tree | c72f6a26a68d4135119c73504cceef1fed3e98fe /main/java/gregtech/common/covers | |
| parent | 6591e802e925a1f57d62b8d506936d6d5e9fde3c (diff) | |
| download | GT5-Unofficial-8198a51aeef641fd25d2b77f776c7640dd3f84a9.tar.gz GT5-Unofficial-8198a51aeef641fd25d2b77f776c7640dd3f84a9.tar.bz2 GT5-Unofficial-8198a51aeef641fd25d2b77f776c7640dd3f84a9.zip | |
Version 5.08.21
Diffstat (limited to 'main/java/gregtech/common/covers')
| -rw-r--r-- | main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java | 12 | ||||
| -rw-r--r-- | main/java/gregtech/common/covers/GT_Cover_SolarPanel.java | 8 |
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 |
