Update to 1.21.4

This commit is contained in:
YoungSoulluoS authored and MrMelon54 committed 2025-03-09 23:42:49 +00:00
1 parent edfb2dae9f
commit fe7bf34fa4
5 files changed
+14 -14

No files matched your search

@@ -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
@@ -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) {