mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-30 05:53:57 +01:00
Fix biomes
This commit is contained in:
parent
4e2156bd2b
commit
78b9e5d833
@ -171,6 +171,15 @@ public class WorldPackets {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Rewrite biome id 255 to plains
|
||||||
|
if (chunk.isBiomeData()) {
|
||||||
|
for (int i = 0; i < 256; i++) {
|
||||||
|
int data = chunk.getBiomeData()[i] & 0xFF;
|
||||||
|
if (data == 255)
|
||||||
|
chunk.getBiomeData()[i] = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Rewrite BlockEntities to normal blocks
|
// Rewrite BlockEntities to normal blocks
|
||||||
BlockEntityProvider provider = Via.getManager().getProviders().get(BlockEntityProvider.class);
|
BlockEntityProvider provider = Via.getManager().getProviders().get(BlockEntityProvider.class);
|
||||||
for (CompoundTag tag : chunk.getBlockEntities()) {
|
for (CompoundTag tag : chunk.getBlockEntities()) {
|
||||||
|
@ -101,7 +101,7 @@ public class Chunk1_13Type extends PartialType<Chunk, ClientWorld> {
|
|||||||
// Write biome data
|
// Write biome data
|
||||||
if (chunk.isBiomeData()) {
|
if (chunk.isBiomeData()) {
|
||||||
for (byte value : chunk.getBiomeData()) {
|
for (byte value : chunk.getBiomeData()) {
|
||||||
output.writeInt(0); // This is a temporary workaround, we'll look into fixing this soon :)
|
output.writeInt(value & 0xFF); // This is a temporary workaround, we'll look into fixing this soon :)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user