Skip to content

Commit 4a689e2

Browse files
committed
fix
1 parent 4a47408 commit 4a689e2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/types/camera/CameraSetInstructionEaseType.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
namespace pocketmine\network\mcpe\protocol\types\camera;
1616

17-
use pocketmine\network\mcpe\protocol\PacketDecodeException;
1817
use function array_flip;
1918

2019
final class CameraSetInstructionEaseType{
@@ -101,6 +100,6 @@ public static function fromName(string $name) : int{
101100
$cache = array_flip(self::EASE_TYPE_NAMES);
102101
}
103102

104-
return $cache[$name] ?? throw new PacketDecodeException("Invalid raw value \"$name\" for EaseType.");
103+
return $cache[$name] ?? throw new \InvalidArgumentException("Invalid raw value \"$name\" for EaseType.");
105104
}
106105
}

0 commit comments

Comments
 (0)