From 05b82b50cab166b03337392dc1a1703de2846da0 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Sun, 6 Oct 2024 13:14:16 -0400 Subject: [PATCH] Fix sprite UVs being messed up --- .../flywheel/lib/vertex/VertexTransformations.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/lib/java/dev/engine_room/flywheel/lib/vertex/VertexTransformations.java b/common/src/lib/java/dev/engine_room/flywheel/lib/vertex/VertexTransformations.java index bf06084a2..0267c7141 100644 --- a/common/src/lib/java/dev/engine_room/flywheel/lib/vertex/VertexTransformations.java +++ b/common/src/lib/java/dev/engine_room/flywheel/lib/vertex/VertexTransformations.java @@ -8,8 +8,8 @@ public final class VertexTransformations { } public static void retexture(MutableVertexList vertexList, int index, TextureAtlasSprite sprite) { - vertexList.u(index, sprite.getU(vertexList.u(index) * 16)); - vertexList.v(index, sprite.getV(vertexList.v(index) * 16)); + vertexList.u(index, sprite.getU(vertexList.u(index))); + vertexList.v(index, sprite.getV(vertexList.v(index))); } public static void retexture(MutableVertexList vertexList, TextureAtlasSprite sprite) {