Fix GUI texture not referencing viafabric. (#243)

* Fix GUI texture not referencing viafabric.

* I set "viafabric" to wrong place, oops.
This commit is contained in:
Kichura 2023-05-09 21:13:22 +02:00 committed by GitHub
parent 4cdceacb94
commit 9d77da9912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ public class MixinServerEntry {
target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lnet/minecraft/util/Identifier;IIFFIIII)V"))
private void redirectPingIcon(DrawContext instance, Identifier texture, int x, int y, float u, float v, int width, int height, int textureWidth, int textureHeight) {
if (texture.equals(GUI_ICONS_TEXTURES) && ((ViaServerInfo) this.server).isViaTranslating()) {
instance.drawTexture(new Identifier("textures/gui/icons.png"), x, y, u, v, width, height, textureWidth, textureHeight);
instance.drawTexture(new Identifier("viafabric:textures/gui/icons.png"), x, y, u, v, width, height, textureWidth, textureHeight);
return;
}
instance.drawTexture(texture, x, y, u, v, width, height, textureWidth, textureHeight);