Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +01:00
Use normal biome data for non-extended world height
Dieser Commit ist enthalten in:
Ursprung
d19ff657de
Commit
e5cb122db3
@ -85,6 +85,7 @@ public class ChunkUtils {
|
|||||||
public static final byte[] EMPTY_BIOME_DATA;
|
public static final byte[] EMPTY_BIOME_DATA;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
if (GeyserConnector.getInstance().getConfig().isExtendedWorldHeight()) {
|
||||||
ByteBuf byteBuf = Unpooled.buffer();
|
ByteBuf byteBuf = Unpooled.buffer();
|
||||||
try {
|
try {
|
||||||
BlockStorage blockStorage = new BlockStorage(0);
|
BlockStorage blockStorage = new BlockStorage(0);
|
||||||
@ -107,6 +108,10 @@ public class ChunkUtils {
|
|||||||
} finally {
|
} finally {
|
||||||
byteBuf.release();
|
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) {
|
private static int indexYZXtoXZY(int yzx) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren