1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-28 16:22:18 +00:00

Fix mouse_up events not firing

- deja vu
This commit is contained in:
Toad-Dev 2022-01-24 14:42:46 -08:00
parent 9ef4601472
commit ef171c2e22

View File

@ -102,6 +102,16 @@ public abstract class ComputerScreenBase<T extends ContainerComputerBase> extend
renderTooltip( stack, mouseX, mouseY );
}
// Fabric note: Forge patches some behavior in AbstractContainerScreen and so doesn't need this override. Fabric
// needs it as the vanilla mouseReleased override in AbstractContainerScreen (the super method from here) always
// consumes the event and doesn't forward it on.
@Override
public boolean mouseReleased( double x, double y, int button )
{
return (getFocused() != null && getFocused().mouseReleased( x, y, button ))
|| super.mouseReleased( x, y, button );
}
@Override
public final boolean mouseDragged( double x, double y, int button, double deltaX, double deltaY )
{