mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-12-19 15:57:37 +01:00
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:
parent
4cdceacb94
commit
9d77da9912
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user