diff --git a/src/CorrectPlayerMovePredictionPacket.php b/src/CorrectPlayerMovePredictionPacket.php index 84dfad2a..0449169e 100644 --- a/src/CorrectPlayerMovePredictionPacket.php +++ b/src/CorrectPlayerMovePredictionPacket.php @@ -75,7 +75,7 @@ protected function encodePayload(PacketSerializer $out) : void{ $out->putVector3($this->delta); if($this->predictionType === self::PREDICTION_TYPE_VEHICLE) { if($this->vehicleRotation == null) { // this should never be the case - throw new \InvalidArgumentException("CorrectPlayerMovePredictionPackets with type VEHICLE require a vehicleRotation to be provided"); + throw new \LogicException("CorrectPlayerMovePredictionPackets with type VEHICLE require a vehicleRotation to be provided"); } $out->putFloat($this->vehicleRotation->getX());