mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-11 20:13:55 +00:00
wip upstream merge
This commit is contained in:
@ -189,7 +189,7 @@ public final class Spigot_v1_13_R2 extends CachedBukkitAdapter implements Bukkit
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public int getBiomeId(Biome biome) {
|
||||
public BiomeType getBiomeId(Biome biome) {
|
||||
BiomeBase mcBiome = CraftBlock.biomeToBiomeBase(biome);
|
||||
return mcBiome != null ? IRegistry.BIOME.a(mcBiome) : 0;
|
||||
}
|
||||
|
@ -352,7 +352,7 @@
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public int getBiomeId(Biome biome) {
|
||||
// public BiomeType getBiomeType(Biome biome) {
|
||||
// try {
|
||||
// Object biomeBase = biomeToBiomeBase.invoke(null, biome);
|
||||
// if (biomeBase != null) return (int) biomeBaseToTypeId.invoke(null, biomeBase);
|
||||
|
@ -232,7 +232,7 @@ public class AsyncBlock implements Block {
|
||||
|
||||
@Override
|
||||
public Biome getBiome() {
|
||||
return world.getAdapter().getBiome(queue.getBiomeId(x, z));
|
||||
return world.getAdapter().getBiome(queue.getBiomeType(x, z));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -20,7 +20,6 @@ import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import com.sk89q.worldedit.world.block.BlockType;
|
||||
import com.sk89q.worldedit.world.block.BlockTypes;
|
||||
@ -859,7 +858,7 @@ public class AsyncWorld extends DelegateFaweQueue implements World, HasFaweQueue
|
||||
|
||||
@Override
|
||||
public Biome getBiome(int x, int z) {
|
||||
return adapter.getBiome(queue.getBiomeId(x, z));
|
||||
return adapter.getBiome(queue.getBiomeType(x, z));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user