Bump version / misc

Fix regenallroads
Add schematic y_offset
Change visit/list for multi-owner plots
Fix updater (pre-1.7.10)
This commit is contained in:
Jesse Boyd
2016-03-02 17:42:04 +11:00
parent 109715e0d7
commit f00ac79c91
14 changed files with 85 additions and 78 deletions

View File

@ -34,7 +34,7 @@ public class GenChunk extends PlotChunk<Chunk> {
@Override
public Chunk getChunkAbs() {
ChunkWrapper wrap = getChunkWrapper();
if (wrap.x != chunk.getX() || wrap.z != chunk.getZ()) {
if (chunk == null || wrap.x != chunk.getX() || wrap.z != chunk.getZ()) {
chunk = BukkitUtil.getWorld(wrap.world).getChunkAt(wrap.x, wrap.z);
}
return chunk;
@ -65,9 +65,14 @@ public class GenChunk extends PlotChunk<Chunk> {
modified = true;
result[i] = v = new short[4096];
}
v[MainUtil.CACHE_J[y][x][z]] = (short) id;
int j = MainUtil.CACHE_J[y][x][z];
v[j] = (short) id;
if (data != 0) {
getChunk().getBlock(x, y, z).setData(data);
byte[] vd = result_data[i];
if (vd == null) {
result_data[i] = vd = new byte[4096];
}
vd[j] = data;
}
}