aboutsummaryrefslogtreecommitdiff
path: root/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java
diff options
context:
space:
mode:
authorBlood Asp <Blood@Asp>2015-04-27 23:38:12 +0200
committerBlood Asp <Blood@Asp>2015-04-27 23:38:12 +0200
commit7c0de38a9fe24ef60ab328e074432881ce4fbda4 (patch)
treec5b0a5bf9b78c1951e7f6375c91cc20423c05201 /main/java/gregtech/common/covers/GT_Cover_ControlsWork.java
parentf1610b1721ed22fcbd4cafb61b0867d8611c00f6 (diff)
downloadGT5-Unofficial-7c0de38a9fe24ef60ab328e074432881ce4fbda4.tar.gz
GT5-Unofficial-7c0de38a9fe24ef60ab328e074432881ce4fbda4.tar.bz2
GT5-Unofficial-7c0de38a9fe24ef60ab328e074432881ce4fbda4.zip
Add and fix
More Bugfixes, Soldering Iron and Magic Energy Absorber
Diffstat (limited to 'main/java/gregtech/common/covers/GT_Cover_ControlsWork.java')
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_ControlsWork.java25
1 files changed, 10 insertions, 15 deletions
diff --git a/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java b/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java
index 6367cf67a1..40819e8eef 100644
--- a/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java
+++ b/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java
@@ -12,21 +12,16 @@
/* 12: */ {
/* 13: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
/* 14: */ {
-/* 15:13 */ if ((aTileEntity instanceof IMachineProgress))
-/* 16: */ {
-/* 17:14 */ if ((aInputRedstone > 0 ? 1 : 0) == (aCoverVariable == 0 ? 1 : 0)) {
-/* 18:14 */ if (aCoverVariable != 2)
-/* 19: */ {
-/* 20:14 */ ((IMachineProgress)aTileEntity).enableWorking();
-/* 21: */ //break label59;
-/* 22: */ }
-/* 23: */ }
-/* 24:14 */ ((IMachineProgress)aTileEntity).disableWorking();
-/* 25: */ //label59:
-/* 26:15 */ ((IMachineProgress)aTileEntity).setWorkDataValue(aInputRedstone);
-/* 27: */ }
-/* 28:17 */ return aCoverVariable;
-/* 29: */ }
+ if(aTileEntity instanceof IMachineProgress)
+ {
+ if((aInputRedstone > 0) == (aCoverVariable == 0) && aCoverVariable != 2)
+ ((IMachineProgress)aTileEntity).enableWorking();
+ else
+ ((IMachineProgress)aTileEntity).disableWorking();
+ ((IMachineProgress)aTileEntity).setWorkDataValue(aInputRedstone);
+ }
+ return aCoverVariable;
+}
/* 30: */
/* 31: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
/* 32: */ {