Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-20 09:50:06 +01:00
fix critical error
Dieser Commit ist enthalten in:
Ursprung
7cf88aff65
Commit
07c5e65166
@ -350,7 +350,7 @@ public class BukkitGetBlocks_1_16_2 extends CharGetBlocks {
|
|||||||
final BiomeType biome = biomes[i];
|
final BiomeType biome = biomes[i];
|
||||||
if (biome != null) {
|
if (biome != null) {
|
||||||
final Biome craftBiome = BukkitAdapter.adapt(biome);
|
final Biome craftBiome = BukkitAdapter.adapt(biome);
|
||||||
BiomeBase nmsBiome = CraftBlock.biomeToBiomeBase(nmsWorld.r().b(IRegistry.ay) ,craftBiome);
|
BiomeBase nmsBiome = CraftBlock.biomeToBiomeBase(nmsWorld.r().b(IRegistry.ay), craftBiome);
|
||||||
for (int y = 0; y < FaweCache.IMP.WORLD_HEIGHT; y++) {
|
for (int y = 0; y < FaweCache.IMP.WORLD_HEIGHT; y++) {
|
||||||
currentBiomes.setBiome(x >> 2, y >> 2, z >> 2, nmsBiome);
|
currentBiomes.setBiome(x >> 2, y >> 2, z >> 2, nmsBiome);
|
||||||
}
|
}
|
||||||
|
@ -450,7 +450,7 @@ public final class FAWE_Spigot_v1_16_R2 extends CachedBukkitAdapter implements I
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getInternalBiomeId(BiomeType biome) {
|
public int getInternalBiomeId(BiomeType biome) {
|
||||||
BiomeBase base = CraftBlock.biomeToBiomeBase(MinecraftServer.getServer().aX().b(IRegistry.ay),BukkitAdapter.adapt(biome));
|
BiomeBase base = CraftBlock.biomeToBiomeBase(MinecraftServer.getServer().aX().b(IRegistry.ay), BukkitAdapter.adapt(biome));
|
||||||
return MinecraftServer.getServer().aX().b(IRegistry.ay).a(base);
|
return MinecraftServer.getServer().aX().b(IRegistry.ay).a(base);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren