diff options
author | Jason Mitchell <mitchej@gmail.com> | 2017-12-24 14:49:43 -0800 |
---|---|---|
committer | Jason Mitchell <mitchej@gmail.com> | 2017-12-24 14:52:38 -0800 |
commit | 1f54500dc1f4f258727315cd0b6fac7b6bb0fa56 (patch) | |
tree | 26ed0590ced9cae7cb5bb5f2ed4153279bb065e0 /src/main/java/gregtech/common | |
parent | 51dd74eb21b4c1bfe9659eb43f545281e52b8216 (diff) | |
download | GT5-Unofficial-1f54500dc1f4f258727315cd0b6fac7b6bb0fa56.tar.gz GT5-Unofficial-1f54500dc1f4f258727315cd0b6fac7b6bb0fa56.tar.bz2 GT5-Unofficial-1f54500dc1f4f258727315cd0b6fac7b6bb0fa56.zip |
Allow use of wire cutter/soldering item on the tile entity, as well as the wire, for a connect/disconnect
Diffstat (limited to 'src/main/java/gregtech/common')
-rw-r--r-- | src/main/java/gregtech/common/GT_Client.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/GT_Client.java b/src/main/java/gregtech/common/GT_Client.java index d87536ea2a..2bb93cc66a 100644 --- a/src/main/java/gregtech/common/GT_Client.java +++ b/src/main/java/gregtech/common/GT_Client.java @@ -16,6 +16,7 @@ import gregtech.api.enums.Materials; import gregtech.api.interfaces.tileentity.ICoverable;
import gregtech.api.interfaces.tileentity.ITurnable;
import gregtech.api.metatileentity.BaseMetaPipeEntity;
+import gregtech.api.metatileentity.BaseTileEntity;
import gregtech.api.objects.GT_ItemStack;
import gregtech.api.util.GT_Log;
import gregtech.api.util.GT_PlayedSound;
@@ -451,6 +452,10 @@ public class GT_Client extends GT_Proxy drawGrid(aEvent);
return;
}
+ if (aTileEntity instanceof BaseTileEntity && (GT_Utility.isStackInList(aEvent.currentItem, GregTech_API.sWireCutterList))) {
+ drawGrid(aEvent);
+ return;
+ }
} catch (Throwable e) {
if (GT_Values.D1) {
e.printStackTrace(GT_Log.err);
|