Fix using wrong array-length

This commit is contained in:
Lukas Rieger (Blue) 2024-11-02 15:29:08 +01:00
parent 3cc0ea70a5
commit 462a7545d0
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6

View File

@ -82,7 +82,7 @@ public ResourceModelRenderer(ResourcePack resourcePack, TextureGallery textureGa
this.blockColorCalculator = resourcePack.getColorCalculatorFactory().createCalculator(); this.blockColorCalculator = resourcePack.getColorCalculatorFactory().createCalculator();
for (int i = 0; i < corners.length; i++) corners[i] = new VectorM3f(0, 0, 0); for (int i = 0; i < corners.length; i++) corners[i] = new VectorM3f(0, 0, 0);
for (int i = 0; i < uvs.length; i++) rawUvs[i] = new VectorM2f(0, 0); for (int i = 0; i < rawUvs.length; i++) rawUvs[i] = new VectorM2f(0, 0);
} }
private final MatrixM4f modelTransform = new MatrixM4f(); private final MatrixM4f modelTransform = new MatrixM4f();