mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-25 04:13:44 +00:00
Possible solution for #1703 in-game action lag
This commit is contained in:
parent
34711dc346
commit
0246648a2c
@ -117,7 +117,12 @@ class RakLibInterface implements ServerInstance, SourceInterface{
|
||||
}
|
||||
|
||||
public function process(){
|
||||
return $this->interface->handlePacket();
|
||||
$work = false;
|
||||
if($this->interface->handlePacket()){
|
||||
$work = true;
|
||||
while($this->interface->handlePacket()){}
|
||||
}
|
||||
return $work;
|
||||
}
|
||||
|
||||
public function closeSession($identifier, $reason){
|
||||
|
Loading…
x
Reference in New Issue
Block a user