mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Merge branch 'stable'
# Conflicts: # resources/vanilla # src/pocketmine/entity/Human.php
This commit is contained in:
@ -70,10 +70,7 @@ class PlayerChangeSkinEvent extends PlayerEvent implements Cancellable{
|
||||
* @throws \InvalidArgumentException if the specified skin is not valid
|
||||
*/
|
||||
public function setNewSkin(Skin $skin) : void{
|
||||
if(!$skin->isValid()){
|
||||
throw new \InvalidArgumentException("Skin format is invalid");
|
||||
}
|
||||
|
||||
$skin->validate();
|
||||
$this->newSkin = $skin;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user