diff --git a/build.gradle b/build.gradle index cf05f7e..99fad2c 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'fabric-loom' version '0.9.9' + id 'fabric-loom' version '0.10.64' id 'maven-publish' } diff --git a/gradle.properties b/gradle.properties index f56a028..a4b89f7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,9 +3,9 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/use - minecraft_version=1.17.1 - yarn_mappings=1.17.1+build.23 - loader_version=0.11.6 + minecraft_version=1.18.1 + yarn_mappings=1.18.1+build.3 + loader_version=0.12.11 # Mod Properties mod_version = 1.1.1 @@ -14,4 +14,4 @@ org.gradle.jvmargs=-Xmx1G # Dependencies # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api - fabric_version=0.37.0+1.17 + fabric_version=0.44.0+1.18 diff --git a/src/main/java/com/vladmarica/betterpingdisplay/hud/CustomPlayerListHud.java b/src/main/java/com/vladmarica/betterpingdisplay/hud/CustomPlayerListHud.java index 354bea5..ed66ea5 100644 --- a/src/main/java/com/vladmarica/betterpingdisplay/hud/CustomPlayerListHud.java +++ b/src/main/java/com/vladmarica/betterpingdisplay/hud/CustomPlayerListHud.java @@ -32,7 +32,7 @@ public final class CustomPlayerListHud { textRenderer.drawWithShadow(matrixStack, pingString, (float) textX, (float) y, pingTextColor); if (config.shouldRenderPingBars()) { - ((PlayerListHudInvoker) hud).renderLatencyIcon(matrixStack, width, x, y, player); + ((PlayerListHudInvoker) hud).invokeRenderLatencyIcon(matrixStack, width, x, y, player); } else { // If we don't render ping bars, we need to reset the render system color so the rest // of the player list renders properly diff --git a/src/main/java/com/vladmarica/betterpingdisplay/mixin/PlayerListHudInvoker.java b/src/main/java/com/vladmarica/betterpingdisplay/mixin/PlayerListHudInvoker.java index cb3f85d..1b61772 100644 --- a/src/main/java/com/vladmarica/betterpingdisplay/mixin/PlayerListHudInvoker.java +++ b/src/main/java/com/vladmarica/betterpingdisplay/mixin/PlayerListHudInvoker.java @@ -9,5 +9,5 @@ import org.spongepowered.asm.mixin.gen.Invoker; @Mixin(PlayerListHud.class) public interface PlayerListHudInvoker { @Invoker("renderLatencyIcon") - void renderLatencyIcon(MatrixStack matrices, int width, int x, int y, PlayerListEntry entry); + void invokeRenderLatencyIcon(MatrixStack matrices, int width, int x, int y, PlayerListEntry entry); } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 997f9cb..0fcc909 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -29,7 +29,7 @@ "depends": { "fabricloader": ">=0.7.4", - "minecraft": "1.17.x" + "minecraft": "1.18.x" }, "suggests": { "flamingo": "*"