Use chunk section length for fallback biome array

This commit is contained in:
KennyTV 2021-02-11 21:45:36 +01:00
parent b21de03710
commit 69609d536b
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -98,7 +98,7 @@ public class WorldPackets {
chunk.setBiomeData(biomes);
} else {
Via.getPlatform().getLogger().warning("Biome data not found for chunk at " + chunk.getX() + ", " + chunk.getZ());
chunk.setBiomeData(new int[1024]);
chunk.setBiomeData(new int[chunk.getSections().length * 64]);
}
}