Moved chunk population to async tasks, and no more cut trees!

This commit is contained in:
Shoghi Cervantes
2015-03-27 01:56:49 +01:00
parent 72c4c01542
commit 08f2b7f291
13 changed files with 359 additions and 43 deletions

View File

@ -265,7 +265,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
$pk = $packet->__encapsulatedPacket;
}
if(!$needACK and $packet->pid() !== ProtocolInfo::BATCH_PACKET
if(!$immediate and !$needACK and $packet->pid() !== ProtocolInfo::BATCH_PACKET
and Network::$BATCH_THRESHOLD >= 0
and strlen($packet->buffer) >= Network::$BATCH_THRESHOLD){
$this->batchedPackets[$this->identifiers[$player]] .= $packet->buffer;