Port to 1.18
This commit is contained in:
parent
98afb6736c
commit
c18b4c069a
5 changed files with 8 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
plugins {
|
||||
id 'fabric-loom' version '0.9.9'
|
||||
id 'fabric-loom' version '0.10.64'
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
"depends": {
|
||||
"fabricloader": ">=0.7.4",
|
||||
"minecraft": "1.17.x"
|
||||
"minecraft": "1.18.x"
|
||||
},
|
||||
"suggests": {
|
||||
"flamingo": "*"
|
||||
|
|
Loading…
Add table
Reference in a new issue