Fixed chunks not unloaded correctly after loaders are broken

This commit is contained in:
OmerBenGera 2020-11-18 12:14:29 +02:00
parent 9cb5a1e7f2
commit 3df3af3069
3 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ public final class NMSAdapter_v1_14_R1 implements NMSAdapter {
chunk.tileEntities.values().stream().filter(tileEntity -> tileEntity instanceof TileEntityMobSpawner) chunk.tileEntities.values().stream().filter(tileEntity -> tileEntity instanceof TileEntityMobSpawner)
.forEach(tileEntity -> ((TileEntityMobSpawner) tileEntity).getSpawner().requiredPlayerRange = 16); .forEach(tileEntity -> ((TileEntityMobSpawner) tileEntity).getSpawner().requiredPlayerRange = 16);
world.setForceLoaded(chunk.getPos().x, chunk.getPos().z, true); world.setForceLoaded(chunk.getPos().x, chunk.getPos().z, false);
} }
} }

View File

@ -162,7 +162,7 @@ public final class NMSAdapter_v1_16_R2 implements NMSAdapter {
chunk.tileEntities.values().stream().filter(tileEntity -> tileEntity instanceof TileEntityMobSpawner) chunk.tileEntities.values().stream().filter(tileEntity -> tileEntity instanceof TileEntityMobSpawner)
.forEach(tileEntity -> ((TileEntityMobSpawner) tileEntity).getSpawner().requiredPlayerRange = 16); .forEach(tileEntity -> ((TileEntityMobSpawner) tileEntity).getSpawner().requiredPlayerRange = 16);
world.setForceLoaded(chunk.getPos().x, chunk.getPos().z, true); world.setForceLoaded(chunk.getPos().x, chunk.getPos().z, false);
} }
} }

View File

@ -162,7 +162,7 @@ public final class NMSAdapter_v1_16_R3 implements NMSAdapter {
chunk.tileEntities.values().stream().filter(tileEntity -> tileEntity instanceof TileEntityMobSpawner) chunk.tileEntities.values().stream().filter(tileEntity -> tileEntity instanceof TileEntityMobSpawner)
.forEach(tileEntity -> ((TileEntityMobSpawner) tileEntity).getSpawner().requiredPlayerRange = 16); .forEach(tileEntity -> ((TileEntityMobSpawner) tileEntity).getSpawner().requiredPlayerRange = 16);
world.setForceLoaded(chunk.getPos().x, chunk.getPos().z, true); world.setForceLoaded(chunk.getPos().x, chunk.getPos().z, false);
} }
} }