Port to 1.18
This commit is contained in:
parent
98afb6736c
commit
c18b4c069a
5 changed files with 8 additions and 8 deletions
|
@ -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
Add a link
Reference in a new issue