Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-03 14:50:30 +01:00
Fix biomes
Dieser Commit ist enthalten in:
Ursprung
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
|
||||
BlockEntityProvider provider = Via.getManager().getProviders().get(BlockEntityProvider.class);
|
||||
for (CompoundTag tag : chunk.getBlockEntities()) {
|
||||
|
@ -101,7 +101,7 @@ public class Chunk1_13Type extends PartialType<Chunk, ClientWorld> {
|
||||
// Write biome data
|
||||
if (chunk.isBiomeData()) {
|
||||
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 :)
|
||||
}
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren