mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 19:55:33 +00:00
Fixed Player::setSpawn()
This commit is contained in:
parent
8aef462a68
commit
4ccaccc126
@ -113,7 +113,7 @@ class Player{
|
||||
}
|
||||
|
||||
public function setSpawn(Vector3 $pos){
|
||||
if(!($pos instanceof Level)){
|
||||
if(!($pos instanceof Position)){
|
||||
$level = $this->level;
|
||||
}else{
|
||||
$level = $pos->level;
|
||||
|
Loading…
x
Reference in New Issue
Block a user