Improved invalid spawnpoint checking

This commit is contained in:
Dylan K. Taylor
2016-10-31 14:05:50 +00:00
parent 7a1cdf88e8
commit 03003ffa50
3 changed files with 12 additions and 5 deletions

View File

@ -64,7 +64,7 @@ class Position extends Vector3{
* @return bool
*/
public function isValid(){
return $this->getLevel() !== null;
return $this->getLevel() instanceof Level;
}
/**