test chunk array perf

This commit is contained in:
Sen 2025-05-25 18:40:34 +02:00
parent 20abca12f2
commit e2ec9f0c84
2 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,7 @@
package client.world;
import java.util.Arrays;
import common.biome.Biome;
import common.block.Block;
import common.init.Blocks;
@ -16,6 +18,7 @@ public class ChunkClient extends Chunk {
}
private void clearArrays() {
Arrays.fill(this.core, null);
this.blocks.clearMap();
this.blockList.clear();
this.bottom = Integer.MAX_VALUE;