From 8198a51aeef641fd25d2b77f776c7640dd3f84a9 Mon Sep 17 00:00:00 2001 From: Blood-Asp Date: Sat, 27 Jun 2015 03:26:08 +0200 Subject: Version 5.08.21 --- main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java | 12 +++--------- main/java/gregtech/common/covers/GT_Cover_SolarPanel.java | 8 +------- 2 files changed, 4 insertions(+), 16 deletions(-) (limited to 'main/java/gregtech/common/covers') 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 -- cgit