Allow pressing the full select button, only prevent pressing the up/down arrows

Fixes #40
This commit is contained in:
MrMelon54 committed 2025-04-09 18:15:21 +01:00
1 parent 8e7f5d99a1
commit 7c53952fbb
1 file changed
+2 -3
@@ -56,9 +56,8 @@ public abstract class TransferableSelectionList_PackEntryMixin extends ObjectSel
public void removeMoveTowardEnd(double d, double e, int i, CallbackInfoReturnable<Boolean> cir) {
if (!DraggableLists.CONFIG.disableResourcePackArrows) return;
float screenWidth = parent.getRectangle().width() / 2f;
if (d < screenWidth) return;
// Allow using the whole pack selection button
if (pack.canSelect()) return;
double f = d - (double) parent.getRowLeft();
if (f < 16 || f > 32) return;