diff --git a/src/generic/SendReliabilityLayer.php b/src/generic/SendReliabilityLayer.php index b519ff6..e0e75ae 100644 --- a/src/generic/SendReliabilityLayer.php +++ b/src/generic/SendReliabilityLayer.php @@ -124,7 +124,7 @@ public function sendQueue() : void{ } private function addToQueue(EncapsulatedPacket $pk, bool $immediate) : void{ - if(PacketReliability::isReliable($pk->reliability)){ + if($pk->reliability->isReliable()){ if($pk->messageIndex === null || $pk->messageIndex < $this->reliableWindowStart){ throw new \InvalidArgumentException("Cannot send a reliable packet with message index less than the window start ($pk->messageIndex < $this->reliableWindowStart)"); }