Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-03 01:50:07 +01:00
Sort of fix biome getting
It seems to want to put random blocks where the biome isn't
Dieser Commit ist enthalten in:
Ursprung
bdc129cf7b
Commit
35169230ad
@ -100,11 +100,11 @@ public class BukkitGetBlocks_1_15 extends CharGetBlocks {
|
|||||||
BiomeBase base = null;
|
BiomeBase base = null;
|
||||||
if (y == -1) {
|
if (y == -1) {
|
||||||
for (y = 0; y < FaweCache.IMP.WORLD_HEIGHT; y++) {
|
for (y = 0; y < FaweCache.IMP.WORLD_HEIGHT; y++) {
|
||||||
base = index.getBiome(x, y, z);
|
base = index.getBiome(x >> 2, y >> 2, z >> 2);
|
||||||
if (base != null) break;
|
if (base != null) break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
base = index.getBiome(x, y, z);
|
base = index.getBiome(x >> 2, y >> 2, z >> 2);
|
||||||
}
|
}
|
||||||
return base != null ? BukkitAdapter.adapt(CraftBlock.biomeBaseToBiome(base)) : null;
|
return base != null ? BukkitAdapter.adapt(CraftBlock.biomeBaseToBiome(base)) : null;
|
||||||
}
|
}
|
||||||
|
@ -105,11 +105,11 @@ public class BukkitGetBlocks_1_15_2 extends CharGetBlocks {
|
|||||||
BiomeBase base = null;
|
BiomeBase base = null;
|
||||||
if (y == -1) {
|
if (y == -1) {
|
||||||
for (y = 0; y < FaweCache.IMP.WORLD_HEIGHT; y++) {
|
for (y = 0; y < FaweCache.IMP.WORLD_HEIGHT; y++) {
|
||||||
base = index.getBiome(x, y, z);
|
base = index.getBiome(x >> 2, y >> 2, z >> 2);
|
||||||
if (base != null) break;
|
if (base != null) break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
base = index.getBiome(x, y, z);
|
base = index.getBiome(x >> 2, y >> 2, z >> 2);
|
||||||
}
|
}
|
||||||
return base != null ? BukkitAdapter.adapt(CraftBlock.biomeBaseToBiome(base)) : null;
|
return base != null ? BukkitAdapter.adapt(CraftBlock.biomeBaseToBiome(base)) : null;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren