mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-11-25 12:25:18 +01:00
Fixed chunks not unloaded correctly after loaders are broken
This commit is contained in:
parent
9cb5a1e7f2
commit
3df3af3069
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user