1
0
mirror of https://github.com/plexusorg/Plex-FAWE.git synced 2025-04-11 18:43:15 +00:00

fix critical error

This commit is contained in:
Aurora 2020-08-23 18:31:33 +02:00
parent 7cf88aff65
commit 07c5e65166
No known key found for this signature in database
GPG Key ID: 89839F67B53656AD
2 changed files with 2 additions and 2 deletions
worldedit-bukkit/src/main/java/com
boydti/fawe/bukkit/adapter/mc1_16_2
sk89q/worldedit/bukkit/adapter/impl

@ -350,7 +350,7 @@ public class BukkitGetBlocks_1_16_2 extends CharGetBlocks {
final BiomeType biome = biomes[i];
if (biome != null) {
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++) {
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
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);
}
}