Skip to content

Commit

Permalink
Fix VertexWriter
Browse files Browse the repository at this point in the history
- Bump pack format in pack.mcmeta
  • Loading branch information
PepperCode1 committed Nov 13, 2024
1 parent e59b741 commit 0d29710
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion forge/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
@@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion forge/src/main/resources/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pack": {
"description": "${mod_name} resources",
"pack_format": 15
"pack_format": 34
}
}

0 comments on commit 0d29710

Please sign in to comment.