diff options
author | Antifluxfield <lyj_299792458@163.com> | 2017-10-30 09:18:40 +0800 |
---|---|---|
committer | Antifluxfield <lyj_299792458@163.com> | 2017-10-30 09:18:40 +0800 |
commit | 22c2f16509e7c1ddbd960275a7f442643e3c9da8 (patch) | |
tree | 0e57fca9e1d7803e5a9dd5af4bd92d22de448245 /src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java | |
parent | 2d8df8d14518d41ff075a63084950ff429a9b09b (diff) | |
download | GT5-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.java | 8 |
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); |