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

Dieser Commit ist enthalten in:
Lixfel 2023-09-13 21:52:20 +02:00
Ursprung 28823b19aa
Commit 6f5617ded3

Datei anzeigen

@ -88,7 +88,9 @@ public class SetBlockBufferPacketListener implements AxiomPacketListener {
Set<Chunk> changedChunks = new HashSet<>();
biomeBuffer.forEachEntry((x, y, z, biome) -> {
world.setBiome(x*4, y*4, z*4, biome);
changedChunks.add(world.getChunkAt(x*4, z*4));
int cx = x/4 - (x < 0 ? 1 : 0);
int cz = z/4 - (z < 0 ? 1 : 0);
changedChunks.add(world.getChunkAt(cx, cz));
});
ServerLevel level = AxiomPaper.convert(world);