mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Separate TickingChunkLoader from ChunkLoader
this makes it possible to keep chunks loaded without ticking them.
This commit is contained in:
@ -951,6 +951,10 @@ class World implements ChunkManager{
|
||||
$randRange = (int) ($randRange > $this->chunkTickRadius ? $this->chunkTickRadius : $randRange);
|
||||
|
||||
foreach($this->loaders as $loader){
|
||||
if(!($loader instanceof TickingChunkLoader)){
|
||||
//TODO: maybe we should just not track non-ticking chunk loaders here?
|
||||
continue;
|
||||
}
|
||||
$chunkX = (int) floor($loader->getX()) >> 4;
|
||||
$chunkZ = (int) floor($loader->getZ()) >> 4;
|
||||
|
||||
|
Reference in New Issue
Block a user