3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-08 04:20:06 +01:00

Fix biome setting in 1.15

Dieser Commit ist enthalten in:
dordsor21 2020-05-14 16:17:29 +01:00
Ursprung 34d40cb856
Commit 5225099ec0
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -328,7 +328,7 @@ public class BukkitGetBlocks_1_15 extends CharGetBlocks {
final Biome craftBiome = BukkitAdapter.adapt(biome); final Biome craftBiome = BukkitAdapter.adapt(biome);
BiomeBase nmsBiome = CraftBlock.biomeToBiomeBase(craftBiome); BiomeBase nmsBiome = CraftBlock.biomeToBiomeBase(craftBiome);
for (int y = 0; y < FaweCache.IMP.WORLD_HEIGHT; y++) { for (int y = 0; y < FaweCache.IMP.WORLD_HEIGHT; y++) {
currentBiomes.setBiome(x, y, z, nmsBiome); currentBiomes.setBiome(x >> 2, y >> 2, z >> 2, nmsBiome);
} }
} }
} }

Datei anzeigen

@ -340,7 +340,7 @@ public class BukkitGetBlocks_1_15_2 extends CharGetBlocks {
final Biome craftBiome = BukkitAdapter.adapt(biome); final Biome craftBiome = BukkitAdapter.adapt(biome);
BiomeBase nmsBiome = CraftBlock.biomeToBiomeBase(craftBiome); BiomeBase nmsBiome = CraftBlock.biomeToBiomeBase(craftBiome);
for (int y = 0; y < FaweCache.IMP.WORLD_HEIGHT; y++) { for (int y = 0; y < FaweCache.IMP.WORLD_HEIGHT; y++) {
currentBiomes.setBiome(x, y, z, nmsBiome); currentBiomes.setBiome(x >> 2, y >> 2, z >> 2, nmsBiome);
} }
} }
} }