mirror of
https://github.com/darksaid98/draggable_lists.git
synced 2026-12-01 22:15:45 +00:00
Update to 1.21.4
This commit is contained in:
1 parent
edfb2dae9f
commit
fe7bf34fa4
5 files changed
+14
-14
No files matched your search
+3
-3
@@ -19,7 +19,7 @@ import org.spongepowered.asm.mixin.Unique;
|
||||
@Environment(EnvType.CLIENT)
|
||||
public abstract class TransferableSelectionListMixin extends ObjectSelectionList<TransferableSelectionList.PackEntry> implements DragList<PackSelectionModel.Entry, TransferableSelectionList.PackEntry> {
|
||||
@Shadow
|
||||
protected abstract int getScrollbarPosition();
|
||||
protected abstract int scrollBarX();
|
||||
|
||||
@Unique
|
||||
private final DragManager<PackSelectionModel.Entry, TransferableSelectionList.PackEntry> draggable_lists$dragManager = new DragManager<>(this);
|
||||
@@ -35,7 +35,7 @@ public abstract class TransferableSelectionListMixin extends ObjectSelectionList
|
||||
|
||||
@Unique
|
||||
private boolean draggable_lists$isMouseOverScrollbar(double mouseX) {
|
||||
return scrollbarVisible() && mouseX >= getScrollbarPosition();
|
||||
return scrollbarVisible() && mouseX >= scrollBarX();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -126,7 +126,7 @@ public abstract class TransferableSelectionListMixin extends ObjectSelectionList
|
||||
|
||||
@Override
|
||||
public double draggable_lists$getScrollAmount() {
|
||||
return getScrollAmount();
|
||||
return scrollAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -127,7 +127,7 @@ public abstract class ServerSelectionListMixin extends ObjectSelectionList<Serve
|
||||
}
|
||||
|
||||
public double draggable_lists$getScrollAmount() {
|
||||
return getScrollAmount();
|
||||
return scrollAmount();
|
||||
}
|
||||
|
||||
public void draggable_lists$setScrollAmount(double v) {
|
||||
|
||||
Reference in new issue
Block a user