Fix wrong drawTextWithShadow reference in mixin

This commit is contained in:
FlorianMichael 2024-12-04 01:25:08 +01:00
parent cb4a4cb8c7
commit ee1df66f35
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -92,7 +92,7 @@ public abstract class MixinMultiplayerServerListWidget_ServerEntry {
}
}
@ModifyArg(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/DrawContext;drawTextWithShadow(Lnet/minecraft/client/font/TextRenderer;Ljava/lang/String;III)I"), index = 2)
@ModifyArg(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/DrawContext;drawTextWithShadow(Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/Text;III)I"), index = 2)
private int disableServerPinging(int x) {
if (viaFabricPlus$disableServerPinging) { // Move server label to the right (as we remove the ping bar)
x += 15 /* ping bar width */ - 3 /* magical offset */;