mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Fix biome setting
This commit is contained in:
parent
558df450b5
commit
8db8a30455
@ -517,17 +517,8 @@ public class BukkitUtil extends WorldUtil {
|
|||||||
for (int x = region.getMinimumPoint().getX(); x <= region.getMaximumPoint().getX(); x++) {
|
for (int x = region.getMinimumPoint().getX(); x <= region.getMaximumPoint().getX(); x++) {
|
||||||
for (int z = region.getMinimumPoint().getZ();
|
for (int z = region.getMinimumPoint().getZ();
|
||||||
z <= region.getMaximumPoint().getZ(); z++) {
|
z <= region.getMaximumPoint().getZ(); z++) {
|
||||||
for (int y = 0; y < world.getMaxHeight(); y++) {
|
if (world.getBiome(x, 64, z) != biome) {
|
||||||
try {
|
world.setBiome(x, z, biome);
|
||||||
if (biomeSetter != null) {
|
|
||||||
biomeSetter.invoke(world, x, z, biome);
|
|
||||||
} else {
|
|
||||||
world.setBiome(x, y, z, biome);
|
|
||||||
}
|
|
||||||
} catch (final Exception e) {
|
|
||||||
PlotSquared.log("An error occurred setting the biome:");
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user