mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-19 04:05:31 +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){
|
public function setSpawn(Vector3 $pos){
|
||||||
if(!($pos instanceof Level)){
|
if(!($pos instanceof Position)){
|
||||||
$level = $this->level;
|
$level = $this->level;
|
||||||
}else{
|
}else{
|
||||||
$level = $pos->level;
|
$level = $pos->level;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user