diff options
author | BucketBrigade <138534411+CookieBrigade@users.noreply.github.com> | 2024-09-16 12:24:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 18:24:00 +0100 |
commit | 49dbb5d1fb3fc86c551a545b94bed5c125fcce97 (patch) | |
tree | f85247d0e2fea7d77f8f900aa4d07f784f4818e7 /src/main/java/gregtech | |
parent | a1954354cc0ae6a0e4c52b399f5fc986cbd0f012 (diff) | |
download | GT5-Unofficial-49dbb5d1fb3fc86c551a545b94bed5c125fcce97.tar.gz GT5-Unofficial-49dbb5d1fb3fc86c551a545b94bed5c125fcce97.tar.bz2 GT5-Unofficial-49dbb5d1fb3fc86c551a545b94bed5c125fcce97.zip |
Fixes cables/pipes not being able to attach to each other (#3209)
Diffstat (limited to 'src/main/java/gregtech')
-rw-r--r-- | src/main/java/gregtech/api/metatileentity/BaseMetaPipeEntity.java | 4 |
1 files changed, 2 insertions, 2 deletions
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); |