From 49dbb5d1fb3fc86c551a545b94bed5c125fcce97 Mon Sep 17 00:00:00 2001 From: BucketBrigade <138534411+CookieBrigade@users.noreply.github.com> Date: Mon, 16 Sep 2024 12:24:00 -0500 Subject: Fixes cables/pipes not being able to attach to each other (#3209) --- src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/gregtech/api/metatileentity') diff --git a/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java b/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java index 12530ce8cd..30a1561f20 100644 --- a/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java +++ b/src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java @@ -1004,9 +1004,9 @@ public class BaseMetaPipeEntity extends CommonMetaTileEntity if (!getCoverInfoAtSide(side).isGUIClickable()) return false; try { if (!aPlayer.isSneaking() && hasValidMetaTileEntity()) { - mMetaTileEntity.onRightclick(this, aPlayer, side, aX, aY, aZ);// Always returns false? + boolean value = mMetaTileEntity.onRightclick(this, aPlayer, side, aX, aY, aZ); mMetaTileEntity.markDirty(); - return true; // Play the animation + return value; } } catch (Throwable e) { GT_FML_LOGGER.error("Encountered Exception while right clicking TileEntity", e); -- cgit