mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 23:26:45 +01:00
Fix up queues
This commit is contained in:
parent
0d468505bb
commit
9f4bdaef40
@ -179,7 +179,7 @@ public class BukkitQueueCoordinator extends BasicQueueCoordinator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (int layer = 0; layer < localChunk.getBaseblocks().length; layer++) {
|
for (int layer = 0; layer < localChunk.getBiomes().length; layer++) {
|
||||||
BiomeType[] biomesLayer = localChunk.getBiomes()[layer];
|
BiomeType[] biomesLayer = localChunk.getBiomes()[layer];
|
||||||
if (biomesLayer == null) {
|
if (biomesLayer == null) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -54,7 +54,7 @@ public class LocalChunk {
|
|||||||
this.x = x;
|
this.x = x;
|
||||||
this.z = z;
|
this.z = z;
|
||||||
this.minSection = parent.getWorld() != null ? (parent.getWorld().getMinY() >> 4) : 0;
|
this.minSection = parent.getWorld() != null ? (parent.getWorld().getMinY() >> 4) : 0;
|
||||||
int sections = parent.getWorld() != null ? (parent.getWorld().getMaxY() >> 4) - minSection : 16;
|
int sections = parent.getWorld() != null ? (parent.getWorld().getMaxY() >> 4) - minSection + 1 : 16;
|
||||||
baseblocks = new BaseBlock[sections][];
|
baseblocks = new BaseBlock[sections][];
|
||||||
biomes = new BiomeType[sections][];
|
biomes = new BiomeType[sections][];
|
||||||
}
|
}
|
||||||
|
@ -47,10 +47,8 @@ public class ChunkUtil {
|
|||||||
x_loc = new short[4096];
|
x_loc = new short[4096];
|
||||||
y_loc = new short[4096];
|
y_loc = new short[4096];
|
||||||
z_loc = new short[4096];
|
z_loc = new short[4096];
|
||||||
for (int i = 0; i < 16; i++) {
|
|
||||||
int i4 = i << 4;
|
|
||||||
for (int j = 0; j < 4096; j++) {
|
for (int j = 0; j < 4096; j++) {
|
||||||
int y = i4 + (j >> 8);
|
int y = j >> 8;
|
||||||
int a = j - ((y & 0xF) << 8);
|
int a = j - ((y & 0xF) << 8);
|
||||||
int z1 = a >> 4;
|
int z1 = a >> 4;
|
||||||
int x1 = a - (z1 << 4);
|
int x1 = a - (z1 << 4);
|
||||||
@ -58,7 +56,6 @@ public class ChunkUtil {
|
|||||||
y_loc[j] = (short) y;
|
y_loc[j] = (short) y;
|
||||||
z_loc[j] = (short) z1;
|
z_loc[j] = (short) z1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
CACHE_J = new short[16][16][16];
|
CACHE_J = new short[16][16][16];
|
||||||
for (int x = 0; x < 16; x++) {
|
for (int x = 0; x < 16; x++) {
|
||||||
for (int z = 0; z < 16; z++) {
|
for (int z = 0; z < 16; z++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user