diff --git a/gradle.properties b/gradle.properties index fa87880..3362440 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,19 +1,19 @@ # Done to increase the memory available to gradle. org.gradle.jvmargs=-Xmx1G # Fabric Properties -# check these on https://modmuss50.me/fabric.html -minecraft_version=1.21-rc1 -yarn_mappings=1.21-rc1+build.1 +# check these on https://fabricmc.net/develop/ +minecraft_version=1.21 +yarn_mappings=1.21+build.1 loader_version=0.15.11 # Mod Properties mod_version=1.0.30 maven_group=link.infra archives_base_name=indium # Dependencies -# check this on https://modmuss50.me/fabric.html -fabric_version=0.100.0+1.21 -sodium_version=0.5.8 -sodium_minecraft_version=1.20.5 +# check this on https://fabricmc.net/develop/ +fabric_version=0.100.1+1.21 +sodium_version=0.5.9 +sodium_minecraft_version=1.21 # Publishing metadata curseforge_id=459496 source_url=https://github.com/comp500/Indium/ diff --git a/src/main/java/link/infra/indium/renderer/mesh/EncodingFormat.java b/src/main/java/link/infra/indium/renderer/mesh/EncodingFormat.java index 255b440..a16627f 100644 --- a/src/main/java/link/infra/indium/renderer/mesh/EncodingFormat.java +++ b/src/main/java/link/infra/indium/renderer/mesh/EncodingFormat.java @@ -65,7 +65,7 @@ private EncodingFormat() { } VERTEX_V = VERTEX_U + 1; VERTEX_LIGHTMAP = HEADER_STRIDE + 6; VERTEX_NORMAL = HEADER_STRIDE + 7; - VERTEX_STRIDE = format.getVertexSizeByte(); + VERTEX_STRIDE = format.getVertexSizeByte() / 4; QUAD_STRIDE = VERTEX_STRIDE * 4; QUAD_STRIDE_BYTES = QUAD_STRIDE * 4; TOTAL_STRIDE = HEADER_STRIDE + QUAD_STRIDE; diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 475c926..65e17ef 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -29,7 +29,7 @@ "depends": { "fabricloader": ">=0.8.0", "minecraft": "~1.21.0", - "sodium": "0.5.8", + "sodium": "0.5.9", "fabric-renderer-api-v1": ">=3.2.0", "fabric-resource-loader-v0": ">=0.4.0" }