mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Use normal biome data for non-extended world height
This commit is contained in:
parent
d19ff657de
commit
e5cb122db3
1 changed files with 23 additions and 18 deletions
|
@ -85,6 +85,7 @@ public class ChunkUtils {
|
|||
public static final byte[] EMPTY_BIOME_DATA;
|
||||
|
||||
static {
|
||||
if (GeyserConnector.getInstance().getConfig().isExtendedWorldHeight()) {
|
||||
ByteBuf byteBuf = Unpooled.buffer();
|
||||
try {
|
||||
BlockStorage blockStorage = new BlockStorage(0);
|
||||
|
@ -107,6 +108,10 @@ public class ChunkUtils {
|
|||
} finally {
|
||||
byteBuf.release();
|
||||
}
|
||||
} else {
|
||||
EMPTY_BIOME_DATA = null; // Unused
|
||||
EMPTY_CHUNK_DATA = new byte[257]; // 256 bytes for biomes, one for borders
|
||||
}
|
||||
}
|
||||
|
||||
private static int indexYZXtoXZY(int yzx) {
|
||||
|
|
Loading…
Reference in a new issue