Update Fabric version to Minecraft 1.20.2

This commit is contained in:
MrMelon54 committed 2023-10-03 14:37:16 +01:00
1 parent 8ec80420a6
commit ba8160d3db
6 files changed
+30 -30

No files matched your search

@@ -82,9 +82,9 @@ public abstract class MixinTransferableSelectionList extends ObjectSelectionList
}
@Override
public boolean mouseScrolled(double mouseX, double mouseY, double amount) {
public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) {
if (draggingObject != null) return true;
return super.mouseScrolled(mouseX, mouseY, amount);
return super.mouseScrolled(mouseX, mouseY, horizontalAmount, verticalAmount);
}
boolean updateDragEvent(double mouseX, double mouseY) {
@@ -38,28 +38,28 @@ public abstract class MixinTransferableSelectionList_PackEntry extends ObjectSel
ci.cancel();
}
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 5))
public void removeOnUpArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 4))
public void removeOnUpArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
if (DraggableLists.getConfig().disableResourcePackArrows) return;
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
instance.blitSprite(resourceLocation, i, j, k, l);
}
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 6))
public void removeOffUpArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 5))
public void removeOffUpArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
if (DraggableLists.getConfig().disableResourcePackArrows) return;
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
instance.blitSprite(resourceLocation, i, j, k, l);
}
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 7))
public void removeOnDownArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 6))
public void removeOnDownArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
if (DraggableLists.getConfig().disableResourcePackArrows) return;
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
instance.blitSprite(resourceLocation, i, j, k, l);
}
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 8))
public void removeOffDownArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 7))
public void removeOffDownArrowButtons(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
if (DraggableLists.getConfig().disableResourcePackArrows) return;
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
instance.blitSprite(resourceLocation, i, j, k, l);
}
@Inject(method = "mouseClicked", at = @At("HEAD"), cancellable = true)
@@ -72,28 +72,28 @@ public abstract class MixinOnlineServerEntry extends ObjectSelectionList.Entry<S
isBeingDragged = v;
}
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 3))
public void removeUpOnButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 3))
public void removeUpOnButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
if (DraggableLists.getConfig().disableServerArrows) return;
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
instance.blitSprite(resourceLocation, i, j, k, l);
}
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 4))
public void removeUpButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 4))
public void removeUpButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
if (DraggableLists.getConfig().disableServerArrows) return;
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
instance.blitSprite(resourceLocation, i, j, k, l);
}
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 5))
public void removeDownOnButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 5))
public void removeDownOnButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
if (DraggableLists.getConfig().disableServerArrows) return;
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
instance.blitSprite(resourceLocation, i, j, k, l);
}
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blit(Lnet/minecraft/resources/ResourceLocation;IIFFIIII)V", ordinal = 6))
public void removeDownButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, float f, float g, int k, int l, int m, int n) {
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiGraphics;blitSprite(Lnet/minecraft/resources/ResourceLocation;IIII)V", ordinal = 6))
public void removeDownButton(GuiGraphics instance, ResourceLocation resourceLocation, int i, int j, int k, int l) {
if (DraggableLists.getConfig().disableServerArrows) return;
instance.blit(resourceLocation, i, j, f, g, k, l, m, n);
instance.blitSprite(resourceLocation, i, j, k, l);
}
@Inject(method = "mouseClicked", at = @At("HEAD"), cancellable = true)
@@ -100,9 +100,9 @@ public abstract class MixinServerSelectionList extends ObjectSelectionList<Serve
}
@Override
public boolean mouseScrolled(double mouseX, double mouseY, double amount) {
public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) {
if (draggingObject != null) return true;
return super.mouseScrolled(mouseX, mouseY, amount);
return super.mouseScrolled(mouseX, mouseY, horizontalAmount, verticalAmount);
}
boolean updateDragEvent(double mouseX, double mouseY) {
+1 -1
View File
@@ -29,7 +29,7 @@
],
"depends": {
"fabric": "*",
"minecraft": ">=1.20",
"minecraft": ">=1.20.2",
"architectury": ">=9.0.0"
}
}
+1 -1
View File
@@ -6,7 +6,7 @@ enabled_platforms=quilt,fabric,forge
archives_base_name=draggable_lists
mod_id=draggable_lists
mod_name=Draggable Lists
mod_version=1.0.1
mod_version=1.0.2
mod_description="Draggable resource packs, datapacks, servers and worlds"
maven_group=com.mrmelon54.DraggableLists