Fix StackOverflowException
This commit is contained in:
parent
98afb6736c
commit
2504cbb402
2 changed files with 2 additions and 2 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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue