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 c5cccb1 commit d4d07b9
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 @@ -74,7 +74,7 @@ protected function encodePayload(PacketSerializer $out) : void{
$out->putByte($this->predictionType);
$out->putVector3($this->position);
$out->putVector3($this->delta);
if($this->predictionType === self::PREDICTION_TYPE_VEHICLE) {
if($this->predictionType === self::PREDICTION_TYPE_VEHICLE){
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 d4d07b9

Please sign in to comment.