*And nukkit

This commit is contained in:
Jesse Boyd 2016-11-28 17:25:13 +11:00
parent 76eb1b9094
commit 585496b489
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -31,19 +31,19 @@ public class NukkitChunk extends CharFaweChunk<BaseFullChunk, NukkitQueue> {
super(parent, x, z);
}
public NukkitChunk(FaweQueue parent, int x, int z, char[][] ids, short[] count, short[] air, short[] relight, byte[] heightMap) {
super(parent, x, z, ids, count, air, relight, heightMap);
public NukkitChunk(FaweQueue parent, int x, int z, char[][] ids, short[] count, short[] air, byte[] heightMap) {
super(parent, x, z, ids, count, air, heightMap);
}
@Override
public CharFaweChunk copy(boolean shallow) {
NukkitChunk copy;
if (shallow) {
copy = new NukkitChunk(getParent(), getX(), getZ(), ids, count, air, relight, heightMap);
copy = new NukkitChunk(getParent(), getX(), getZ(), ids, count, air, heightMap);
copy.biomes = biomes;
copy.chunk = chunk;
} else {
copy = new NukkitChunk(getParent(), getX(), getZ(), (char[][]) MainUtil.copyNd(ids), count.clone(), air.clone(), relight.clone(), heightMap.clone());
copy = new NukkitChunk(getParent(), getX(), getZ(), (char[][]) MainUtil.copyNd(ids), count.clone(), air.clone(), heightMap.clone());
copy.biomes = biomes;
copy.chunk = chunk;
copy.biomes = biomes.clone();