Update mappings to stable_39-1.12 (#322)

This commit is contained in:
zeng-git
2023-11-08 05:21:59 +08:00
committed by GitHub
parent ba9b790a02
commit 4484863452
88 changed files with 239 additions and 212 deletions
@@ -274,7 +274,7 @@ public class Quad implements IVertexProducer, ISmartVertexConsumer {
* @return The BakedQuad.
*/
public BakedQuad bake() {
int[] packedData = new int[this.format.format.getNextOffset()];
int[] packedData = new int[this.format.format.getSize()];
for (int v = 0; v < 4; v++) {
for (int e = 0; e < this.format.elementCount; e++) {
LightUtil.pack(this.vertices[v].raw[e], packedData, this.format.format, v, e);