mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +00:00
Move responsibility of firing chunk requests from World to NetworkSession
this is, after all, all about sending chunks ...
This commit is contained in:
parent
4ae7efbfbc
commit
64afb6f2e2
@ -956,8 +956,12 @@ class NetworkSession{
|
||||
return true; //keep ticking until timeout
|
||||
}
|
||||
|
||||
if($this->player !== null){
|
||||
$this->player->doChunkRequests();
|
||||
}
|
||||
|
||||
$this->flushSendBuffer();
|
||||
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -810,10 +810,6 @@ class World implements ChunkManager{
|
||||
|
||||
}
|
||||
|
||||
foreach($this->players as $p){
|
||||
$p->doChunkRequests();
|
||||
}
|
||||
|
||||
if($this->sleepTicks > 0 and --$this->sleepTicks <= 0){
|
||||
$this->checkSleep();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user