Oops, forgot to do it correctly!

This commit is contained in:
Shoghi Cervantes
2015-04-14 20:39:37 +02:00
parent 6ee3a7b8d7
commit 42eda170b5
2 changed files with 38 additions and 4 deletions

View File

@ -220,7 +220,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
if(!$immediate and !$needACK and $packet->pid() !== ProtocolInfo::BATCH_PACKET
and Network::$BATCH_THRESHOLD >= 0
and strlen($packet->buffer) >= Network::$BATCH_THRESHOLD){
$this->server->batchPackets([$player], [$packet], false, $packet->getChannel());
$this->server->batchPackets([$player], [$packet], true, $packet->getChannel());
return null;
}