mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 11:16:57 +00:00
Use more appropriate exceptions in the protocol layer
This commit is contained in:
@ -109,7 +109,7 @@ class BookEditPacket extends DataPacket{
|
||||
$this->putString($this->xuid);
|
||||
break;
|
||||
default:
|
||||
throw new \UnexpectedValueException("Unknown book edit type $this->type!");
|
||||
throw new \InvalidArgumentException("Unknown book edit type $this->type!");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user