Merge branch 'stable'

# Conflicts:
#	resources/vanilla
This commit is contained in:
Dylan K. Taylor
2020-07-11 20:14:42 +01:00
3 changed files with 5 additions and 2 deletions

View File

@ -43,6 +43,9 @@ class PlayerRespawnEvent extends PlayerEvent{
}
public function setRespawnPosition(Position $position) : void{
if(!$position->isValid()){
throw new \InvalidArgumentException("Spawn position must reference a valid and loaded World");
}
$this->position = $position;
}
}