mirror of
https://github.com/darksaid98/draggable_lists.git
synced 2026-12-01 14:38:47 +00:00
Allow pressing the full select button, only prevent pressing the up/down arrows
Fixes #40
This commit is contained in:
1 file changed
+2
-3
+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;
|
||||
|
||||
Reference in new issue
Block a user