mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Fixed Player::setSpawn()
This commit is contained in:
parent
8aef462a68
commit
4ccaccc126
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue