From 0d2971007bc0a40b7123849a5b241b7e2f8c4e76 Mon Sep 17 00:00:00 2001 From: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:32:08 -0800 Subject: [PATCH] Fix VertexWriter - Bump pack format in pack.mcmeta --- .../dev/engine_room/flywheel/lib/model/part/VertexWriter.java | 2 +- forge/src/main/resources/META-INF/neoforge.mods.toml | 2 +- forge/src/main/resources/pack.mcmeta | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/lib/java/dev/engine_room/flywheel/lib/model/part/VertexWriter.java b/common/src/lib/java/dev/engine_room/flywheel/lib/model/part/VertexWriter.java index 9921428ed..00d808ee3 100644 --- a/common/src/lib/java/dev/engine_room/flywheel/lib/model/part/VertexWriter.java +++ b/common/src/lib/java/dev/engine_room/flywheel/lib/model/part/VertexWriter.java @@ -84,7 +84,7 @@ public VertexConsumer setNormal(float x, float y, float z) { } private long vertexPtr() { - return data.ptr() + vertexCount * STRIDE; + return data.ptr() + (vertexCount - 1) * STRIDE; } private void endLastVertex() { diff --git a/forge/src/main/resources/META-INF/neoforge.mods.toml b/forge/src/main/resources/META-INF/neoforge.mods.toml index f5d547387..d03c57ab8 100644 --- a/forge/src/main/resources/META-INF/neoforge.mods.toml +++ b/forge/src/main/resources/META-INF/neoforge.mods.toml @@ -1,5 +1,5 @@ modLoader = "javafml" -# The loader version doesn't matter. Modify the Forge and/or Minecraft version ranges instead. +# The loader version doesn't matter. Modify the NeoForge and/or Minecraft version ranges instead. loaderVersion = "[0,)" license = "${mod_license}" issueTrackerURL = "${mod_issues}" diff --git a/forge/src/main/resources/pack.mcmeta b/forge/src/main/resources/pack.mcmeta index ae03c9b7f..77bed856b 100644 --- a/forge/src/main/resources/pack.mcmeta +++ b/forge/src/main/resources/pack.mcmeta @@ -1,6 +1,6 @@ { "pack": { "description": "${mod_name} resources", - "pack_format": 15 + "pack_format": 34 } }