diff --git a/gradle.properties b/gradle.properties index 6509869..1699fca 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ # Mod Properties id = fluxapi -version = 0.6.1 +version = 0.6.2 flux_desc = The central modding API for Cosmic Reach Fabric/Quilt group = dev.crmodders diff --git a/src/main/java/dev/crmodders/flux/engine/blocks/CustomTextureLoader.java b/src/main/java/dev/crmodders/flux/engine/blocks/CustomTextureLoader.java index 34d5af5..55ade29 100644 --- a/src/main/java/dev/crmodders/flux/engine/blocks/CustomTextureLoader.java +++ b/src/main/java/dev/crmodders/flux/engine/blocks/CustomTextureLoader.java @@ -29,7 +29,7 @@ public static void registerTexture(String textureName, Pixmap blockPix) { Texture chunkTerrainTex = ChunkShaderAccessor.getChunkTerrainTex(); HashMap storedTexs = ChunkShaderAccessor.getStoredTexs(); - float[] uv = new float[]{(float)(terrainPixCurX / allBlocksPix.getWidth()), (float)(terrainPixCurY / allBlocksPix.getHeight())}; + float[] uv = new float[]{(float)(terrainPixCurX / blockPix.getWidth()), (float)(terrainPixCurY / blockPix.getHeight())}; allBlocksPix.drawPixmap(blockPix, terrainPixCurX, terrainPixCurY); terrainPixCurX += blockPix.getWidth(); if ((float)terrainPixCurX > (float)(allBlocksPix.getWidth() * 15) / 16.0F) {