Fix Biome coordinate translation
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2023-09-13 21:50:17 +02:00
Ursprung a892c966a3
Commit 28823b19aa

Datei anzeigen

@ -87,8 +87,8 @@ public class SetBlockBufferPacketListener implements AxiomPacketListener {
private void applyBiomeBuffer(World world, BiomeBuffer biomeBuffer) {
Set<Chunk> changedChunks = new HashSet<>();
biomeBuffer.forEachEntry((x, y, z, biome) -> {
world.setBiome(x << 2, y << 2, z << 2, biome);
changedChunks.add(world.getChunkAt(x << 2, z << 2));
world.setBiome(x*4, y*4, z*4, biome);
changedChunks.add(world.getChunkAt(x*4, z*4));
});
ServerLevel level = AxiomPaper.convert(world);