mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Pretty basic fix for chunk generation
This commit is contained in:
parent
4e10682748
commit
6ac7948f72
1 changed files with 8 additions and 0 deletions
|
@ -82,6 +82,13 @@ public class GenChunk extends ScopedLocalBlockQueue {
|
|||
} else {
|
||||
super.setCuboid(pos1, pos2, block);
|
||||
}
|
||||
int minx = pos1.getX() < pos2.getX() ? pos1.getX() : pos2.getX();
|
||||
int miny = pos1.getY() < pos2.getY() ? pos1.getY() : pos2.getY();
|
||||
int minz = pos1.getZ() < pos2.getZ() ? pos1.getZ() : pos2.getZ();
|
||||
int maxx = pos1.getX() > pos2.getX() ? pos1.getX() : pos2.getX();
|
||||
int maxy = pos1.getY() > pos2.getY() ? pos1.getY() : pos2.getY();
|
||||
int maxz = pos1.getZ() > pos2.getZ() ? pos1.getZ() : pos2.getZ();
|
||||
cd.setRegion(minx, miny, minz, maxx, maxy, maxz, block.to(Material.class));
|
||||
}
|
||||
|
||||
@Override public boolean setBiome(int x, int z, String biome) {
|
||||
|
@ -101,6 +108,7 @@ public class GenChunk extends ScopedLocalBlockQueue {
|
|||
this.cd.setBlock(x, y, z, id.to(Material.class));
|
||||
return true;
|
||||
}
|
||||
this.cd.setBlock(x, y, z, id.to(Material.class));
|
||||
int i = MainUtil.CACHE_I[y][x][z];
|
||||
PlotBlock[] v = this.result[i];
|
||||
if (v == null) {
|
||||
|
|
Loading…
Reference in a new issue