From 45f036c9f09520102fffd24aaef9fc1cdd21e37f Mon Sep 17 00:00:00 2001 From: Tobias Grether Date: Tue, 13 Aug 2024 16:02:37 +0200 Subject: [PATCH] chore: missing vehicleRotation is a LogicException --- src/CorrectPlayerMovePredictionPacket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());