Fixed disconnects properly

This commit is contained in:
Dylan K. Taylor 2017-04-21 20:31:47 +01:00
parent 3f1790bcb8
commit be631ad6f7

View File

@ -220,7 +220,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
$this->interface->sendEncapsulated($identifier, $pk, ($needACK === true ? RakLib::FLAG_NEED_ACK : 0) | ($immediate === true ? RakLib::PRIORITY_IMMEDIATE : RakLib::PRIORITY_NORMAL));
return $pk->identifierACK;
}else{
$this->server->batchPackets([$player], [$packet], true);
$this->server->batchPackets([$player], [$packet], true, $immediate);
return null;
}
}