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 aa1133f commit 1c9dbcd
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 @@ -39,7 +39,7 @@ public static function create(Vector3 $position, Vector3 $delta, bool $onGround,
$result->tick = $tick;
$result->predictionType = $predictionType;

if($predictionType === self::PREDICTION_TYPE_VEHICLE && $vehicleRotation == null) {
if($predictionType === self::PREDICTION_TYPE_VEHICLE && $vehicleRotation === null){
throw new \LogicException("CorrectPlayerMovePredictionPackets with type VEHICLE require a vehicleRotation to be provided");
}

Expand Down

0 comments on commit 1c9dbcd

Please sign in to comment.