Fix VertexWriter

- Bump pack format in pack.mcmeta
This commit is contained in:
PepperCode1 2024-11-12 21:32:08 -08:00
parent e59b741045
commit 0d2971007b
3 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@ class VertexWriter implements VertexConsumer {
} }
private long vertexPtr() { private long vertexPtr() {
return data.ptr() + vertexCount * STRIDE; return data.ptr() + (vertexCount - 1) * STRIDE;
} }
private void endLastVertex() { private void endLastVertex() {

View file

@ -1,5 +1,5 @@
modLoader = "javafml" 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,)" loaderVersion = "[0,)"
license = "${mod_license}" license = "${mod_license}"
issueTrackerURL = "${mod_issues}" issueTrackerURL = "${mod_issues}"

View file

@ -1,6 +1,6 @@
{ {
"pack": { "pack": {
"description": "${mod_name} resources", "description": "${mod_name} resources",
"pack_format": 15 "pack_format": 34
} }
} }