mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Clean up Skin error handling, close #2926
Skin->__construct() now does all the validation.
This commit is contained in:
@ -70,7 +70,6 @@ class PlayerChangeSkinEvent extends PlayerEvent implements Cancellable{
|
||||
* @throws \InvalidArgumentException if the specified skin is not valid
|
||||
*/
|
||||
public function setNewSkin(Skin $skin) : void{
|
||||
$skin->validate();
|
||||
$this->newSkin = $skin;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user