Fixed batched packets being encoded twice

This commit is contained in:
Dylan K. Taylor 2017-03-03 17:33:30 +00:00
parent 1ee689e759
commit 15f098074a

View File

@ -196,6 +196,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
$pk = null;
if(!$packet->isEncoded){
$packet->encode();
$packet->isEncoded = true;
}elseif(!$needACK){
if(!isset($packet->__encapsulatedPacket)){
$packet->__encapsulatedPacket = new CachedEncapsulatedPacket;