3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 08:30:09 +01:00
Dieser Commit ist enthalten in:
creeper123123321 2018-07-20 10:26:56 -03:00
Ursprung 4e2156bd2b
Commit 78b9e5d833
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 0AC57D54786721D1
2 geänderte Dateien mit 10 neuen und 1 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

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