diff options
author | Techlone <techlone.mc@gmail.com> | 2017-06-01 20:59:20 +0500 |
---|---|---|
committer | Techlone <techlone.mc@gmail.com> | 2017-06-01 20:59:20 +0500 |
commit | f2f74c09f931b5e6647037b40d56672d3b605cb2 (patch) | |
tree | 0bb366812afd8d8fe1473112b7ac7898e134d977 /src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java | |
parent | f19e920925aa5c85ec32e7e4b6e17588528eb3e3 (diff) | |
parent | 0a928887eda8a9a3961d9b409e8ed7b2b1336995 (diff) | |
download | GT5-Unofficial-f2f74c09f931b5e6647037b40d56672d3b605cb2.tar.gz GT5-Unofficial-f2f74c09f931b5e6647037b40d56672d3b605cb2.tar.bz2 GT5-Unofficial-f2f74c09f931b5e6647037b40d56672d3b605cb2.zip |
Merge branch 'unstable' of https://github.com/Blood-Asp/GT5-Unofficial into unstable
Diffstat (limited to 'src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java')
-rw-r--r-- | src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java index 3af0a7de99..371928ec58 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java @@ -2,10 +2,18 @@ package gregtech.common.covers; import gregtech.api.GregTech_API;
import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.interfaces.tileentity.IMachineProgress;
public class GT_Cover_RedstoneReceiverInternal
extends GT_Cover_RedstoneWirelessBase {
public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer) {
+ if (aTileEntity instanceof IMachineProgress) {
+ if (getRedstoneInput(aSide, aInputRedstone, aCoverID, aCoverVariable, aTileEntity) >0)
+ ((IMachineProgress) aTileEntity).enableWorking();
+ else
+ ((IMachineProgress) aTileEntity).disableWorking();
+ ((IMachineProgress) aTileEntity).setWorkDataValue(aInputRedstone);
+ }
return aCoverVariable;
}
|