mirror of
https://github.com/darksaid98/draggable_lists.git
synced 2026-12-03 14:38:46 +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) {
|
public void removeMoveTowardEnd(double d, double e, int i, CallbackInfoReturnable<Boolean> cir) {
|
||||||
if (!DraggableLists.CONFIG.disableResourcePackArrows) return;
|
if (!DraggableLists.CONFIG.disableResourcePackArrows) return;
|
||||||
|
|
||||||
float screenWidth = parent.getRectangle().width() / 2f;
|
// Allow using the whole pack selection button
|
||||||
|
if (pack.canSelect()) return;
|
||||||
if (d < screenWidth) return;
|
|
||||||
|
|
||||||
double f = d - (double) parent.getRowLeft();
|
double f = d - (double) parent.getRowLeft();
|
||||||
if (f < 16 || f > 32) return;
|
if (f < 16 || f > 32) return;
|
||||||
|
|||||||
Reference in new issue
Block a user