Fix compile

This commit is contained in:
Jesse Boyd 2016-12-23 16:11:55 +11:00
parent 4210ec0479
commit 5fe9aff4e4
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 3 additions and 2 deletions

View File

@ -552,7 +552,7 @@ public class BukkitQueue_1_10 extends BukkitQueue_0<Chunk, ChunkSection[], Chunk
} }
int x = ((int) Math.round(ent.locX) & 15); int x = ((int) Math.round(ent.locX) & 15);
int z = ((int) Math.round(ent.locZ) & 15); int z = ((int) Math.round(ent.locZ) & 15);
int y = (int) Math.round(ent.locY); int y = ((int) Math.round(ent.locY)) & 255;
int i = FaweCache.CACHE_I[y][z][x]; int i = FaweCache.CACHE_I[y][z][x];
char[] array = fs.getIdArray(i); char[] array = fs.getIdArray(i);
if (array == null) { if (array == null) {

View File

@ -20,6 +20,7 @@ import com.boydti.fawe.object.FawePlayer;
import com.boydti.fawe.util.MathMan; import com.boydti.fawe.util.MathMan;
import com.sk89q.jnbt.CompoundTag; import com.sk89q.jnbt.CompoundTag;
import com.sk89q.worldedit.world.World; import com.sk89q.worldedit.world.World;
import com.sk89q.worldedit.world.biome.BaseBiome;
import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
@ -248,7 +249,7 @@ public class NukkitQueue extends NMSMappedFaweQueue<Level, BaseFullChunk, BaseFu
} }
@Override @Override
public boolean regenerateChunk(Level level, int x, int z) { public boolean regenerateChunk(Level level, int x, int z, BaseBiome biome, Long seed) {
level.regenerateChunk(x, z); level.regenerateChunk(x, z);
return true; return true;
} }