Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
vladmarica
2504cbb402 Fix StackOverflowException 2021-12-13 13:47:15 -04:00
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); textRenderer.drawWithShadow(matrixStack, pingString, (float) textX, (float) y, pingTextColor);
if (config.shouldRenderPingBars()) { if (config.shouldRenderPingBars()) {
((PlayerListHudInvoker) hud).renderLatencyIcon(matrixStack, width, x, y, player); ((PlayerListHudInvoker) hud).invokeRenderLatencyIcon(matrixStack, width, x, y, player);
} else { } else {
// If we don't render ping bars, we need to reset the render system color so the rest // If we don't render ping bars, we need to reset the render system color so the rest
// of the player list renders properly // of the player list renders properly

View file

@ -9,5 +9,5 @@ import org.spongepowered.asm.mixin.gen.Invoker;
@Mixin(PlayerListHud.class) @Mixin(PlayerListHud.class)
public interface PlayerListHudInvoker { public interface PlayerListHudInvoker {
@Invoker("renderLatencyIcon") @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);
} }