Skip to content

Commit

Permalink
Fixed merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Dec 3, 2024
1 parent bc2e0c7 commit 575ed2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generic/SendReliabilityLayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
}
Expand Down

0 comments on commit 575ed2f

Please sign in to comment.