aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java
diff options
context:
space:
mode:
authorAntifluxfield <lyj_299792458@163.com>2017-10-30 09:18:40 +0800
committerAntifluxfield <lyj_299792458@163.com>2017-10-30 09:18:40 +0800
commit22c2f16509e7c1ddbd960275a7f442643e3c9da8 (patch)
tree0e57fca9e1d7803e5a9dd5af4bd92d22de448245 /src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java
parent2d8df8d14518d41ff075a63084950ff429a9b09b (diff)
downloadGT5-Unofficial-22c2f16509e7c1ddbd960275a7f442643e3c9da8.tar.gz
GT5-Unofficial-22c2f16509e7c1ddbd960275a7f442643e3c9da8.tar.bz2
GT5-Unofficial-22c2f16509e7c1ddbd960275a7f442643e3c9da8.zip
GT6 styled pipe and wire connection
Diffstat (limited to 'src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java')
-rw-r--r--src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java b/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java
index e5fba09a82..453522f323 100644
--- a/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java
+++ b/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java
@@ -816,6 +816,14 @@ public class BaseMetaPipeEntity extends BaseTileEntity implements IGregTechTileE
return true;
}
+ if (GT_Utility.isStackInList(tCurrentItem, GregTech_API.sWireCutterList)) {
+ if (mMetaTileEntity.onWireCutterRightClick(aSide, tSide, aPlayer, aX, aY, aZ)) {
+ GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 1000, aPlayer);
+ GT_Utility.sendSoundToPlayers(worldObj, GregTech_API.sSoundList.get(100), 1.0F, -1, xCoord, yCoord, zCoord);
+ }
+ return true;
+ }
+
if (GT_Utility.isStackInList(tCurrentItem, GregTech_API.sSolderingToolList)) {
if (GT_ModHandler.useSolderingIron(tCurrentItem, aPlayer)) {
mStrongRedstone ^= (1 << tSide);