Skip to content

Commit

Permalink
Update src/CorrectPlayerMovePredictionPacket.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps authored Aug 13, 2024
1 parent d4d07b9 commit dc14d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CorrectPlayerMovePredictionPacket.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected function encodePayload(PacketSerializer $out) : void{
$out->putVector3($this->position);
$out->putVector3($this->delta);
if($this->predictionType === self::PREDICTION_TYPE_VEHICLE){
if($this->vehicleRotation == null) { // this should never be the case
if($this->vehicleRotation === null){ // this should never be the case
throw new \LogicException("CorrectPlayerMovePredictionPackets with type VEHICLE require a vehicleRotation to be provided");
}

Expand Down

0 comments on commit dc14d94

Please sign in to comment.