Fxi regen (again)

This commit is contained in:
Jesse Boyd
2019-11-23 18:41:05 +00:00
parent edeb285152
commit 50c9a2c2d2
2 changed files with 40 additions and 8 deletions

View File

@ -227,11 +227,15 @@ public class BukkitGetBlocks_1_14 extends CharGetBlocks {
entity.valid = false;
}
public Chunk ensureLoaded(net.minecraft.server.v1_14_R1.World nmsWorld, int X, int Z) {
return BukkitAdapter_1_14.ensureLoaded(nmsWorld, X, Z);
}
@Override
public <T extends Future<T>> T call(IChunkSet set, Runnable finalizer) {
try {
WorldServer nmsWorld = world;
Chunk nmsChunk = BukkitAdapter_1_14.ensureLoaded(nmsWorld, X, Z);
Chunk nmsChunk = ensureLoaded(nmsWorld, X, Z);
// Remove existing tiles
{
@ -628,7 +632,7 @@ public class BukkitGetBlocks_1_14 extends CharGetBlocks {
synchronized (this) {
tmp = nmsChunk;
if (tmp == null) {
nmsChunk = tmp = BukkitAdapter_1_14.ensureLoaded(this.world, X, Z);
nmsChunk = tmp = ensureLoaded(this.world, X, Z);
}
}
}