diff options
Diffstat (limited to 'src/main/java/gregtech/api')
-rw-r--r-- | src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java b/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java index aae3ddcebb..56a63de65a 100644 --- a/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java +++ b/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java @@ -1000,16 +1000,12 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity if (getCoverInfoAtSide(side).onCoverRightClick(aPlayer, aX, aY, aZ)) return true; } - if (!getCoverInfoAtSide(side).isGUIClickable()) return false; - try { if (!aPlayer.isSneaking() && hasValidMetaTileEntity()) { - final boolean handled = mMetaTileEntity.onRightclick(this, aPlayer, side, aX, aY, aZ); - if (handled) { - mMetaTileEntity.markDirty(); - } - return handled; + mMetaTileEntity.onRightclick(this, aPlayer, side, aX, aY, aZ);// Always returns false? + mMetaTileEntity.markDirty(); + return true; // Play the animation } } catch (Throwable e) { GT_FML_LOGGER.error("Encountered Exception while right clicking TileEntity", e); |