From 4221744e308cf19cecf9e0d2b06769abe9d7e8e5 Mon Sep 17 00:00:00 2001 From: NotAPenguin Date: Thu, 12 Sep 2024 07:35:55 +0200 Subject: Fix final frame box issues (#3160) Co-authored-by: BucketBrigade <138534411+CookieBrigade@users.noreply.github.com> --- .../java/gregtech/api/metatileentity/BaseMetaPipeEntity.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/main/java/gregtech/api') 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); -- cgit