Fix biomes

This commit is contained in:
creeper123123321 2018-07-20 10:26:56 -03:00
parent 4e2156bd2b
commit 78b9e5d833
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1
2 changed files with 10 additions and 1 deletions

View File

@ -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()) {

View File

@ -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 :)
} }
} }