Fix sprite UVs being messed up

This commit is contained in:
IThundxr 2024-10-06 13:14:16 -04:00
parent ae4e4e79f5
commit 05b82b50ca
No known key found for this signature in database
GPG Key ID: E291EC97BAF935E6

View File

@ -8,8 +8,8 @@ public final class VertexTransformations {
} }
public static void retexture(MutableVertexList vertexList, int index, TextureAtlasSprite sprite) { public static void retexture(MutableVertexList vertexList, int index, TextureAtlasSprite sprite) {
vertexList.u(index, sprite.getU(vertexList.u(index) * 16)); vertexList.u(index, sprite.getU(vertexList.u(index)));
vertexList.v(index, sprite.getV(vertexList.v(index) * 16)); vertexList.v(index, sprite.getV(vertexList.v(index)));
} }
public static void retexture(MutableVertexList vertexList, TextureAtlasSprite sprite) { public static void retexture(MutableVertexList vertexList, TextureAtlasSprite sprite) {