mirror of
https://github.com/darksaid98/draggable_lists.git
synced 2026-12-03 06:28:46 +00:00
Fix enabled resource pack arrows position calculation
This commit is contained in:
1 file changed
+4
-1
+4
-1
@@ -52,7 +52,10 @@ public abstract class TransferableSelectionList_PackEntryMixin extends ObjectSel
|
|||||||
@Inject(method = "mouseClicked", at = @At("HEAD"), cancellable = true)
|
@Inject(method = "mouseClicked", at = @At("HEAD"), cancellable = true)
|
||||||
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;
|
||||||
if (d > getRectangle().width() / 2f) return;
|
|
||||||
|
float screenWidth = parent.getRectangle().width() / 2f;
|
||||||
|
|
||||||
|
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