Don't force load

didn't realize this loads the chunk, I just need to delay unloading until the operation is complete
This commit is contained in:
Jesse Boyd
2019-10-23 16:44:36 +01:00
parent a8df8a805f
commit 938dde68b2
3 changed files with 32 additions and 18 deletions

View File

@ -64,17 +64,17 @@ public class BukkitGetBlocks_1_14 extends CharGetBlocks {
this.world = (CraftWorld) world;
this.X = X;
this.Z = Z;
if (forceLoad) {
this.world.getHandle().setForceLoaded(X, Z, this.forceLoad = true);
}
// if (forceLoad) {
// this.world.getHandle().setForceLoaded(X, Z, this.forceLoad = true);
// }
}
@Override
protected void finalize() {
if (forceLoad) {
this.world.getHandle().setForceLoaded(X, Z, forceLoad = false);
}
}
// @Override
// protected void finalize() {
// if (forceLoad) {
// this.world.getHandle().setForceLoaded(X, Z, forceLoad = false);
// }
// }
@Override
public BiomeType getBiomeType(int x, int z) {