Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-08 04:20:06 +01:00
Fix setbiome
Dieser Commit ist enthalten in:
Ursprung
f161c69a66
Commit
1d6f2e4274
@ -165,20 +165,21 @@ public class BukkitChunk_All extends IntFaweChunk<Chunk, BukkitQueue_All> {
|
|||||||
if (previous != null) {
|
if (previous != null) {
|
||||||
task.run(previous, this);
|
task.run(previous, this);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Biomes
|
// Biomes
|
||||||
if (layer == 0) {
|
final byte[] biomes = getBiomeArray();
|
||||||
final byte[] biomes = getBiomeArray();
|
if (biomes != null) {
|
||||||
if (biomes != null) {
|
int index = 0;
|
||||||
int index = 0;
|
for (int z = 0; z < 16; z++) {
|
||||||
for (int z = 0; z < 16; z++) {
|
int zz = bz + z;
|
||||||
int zz = bx + z;
|
for (int x = 0; x < 16; x++, index++) {
|
||||||
for (int x = 0; x < 16; x++) {
|
int xx = bx + x;
|
||||||
int xx = bz + x;
|
int biome = biomes[index] & 0xFF;
|
||||||
Biome bukkitBiome = adapter.getBiome(biomes[index++] & 0xFF);
|
if (biome == 0) continue;
|
||||||
world.setBiome(xx, zz, bukkitBiome);
|
if (biome == -1) biome = 0;
|
||||||
}
|
Biome bukkitBiome = adapter.getBiome(biome);
|
||||||
}
|
world.setBiome(xx, zz, bukkitBiome);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren