Fix StackOverflowException

This commit is contained in:
vladmarica 2021-12-13 13:47:15 -04:00
parent 98afb6736c
commit 2504cbb402
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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);
}