mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
readded return in reset spawn pos & some fixes to formatting
This commit is contained in:
parent
f74e6e0638
commit
ed4f820ff3
9 changed files with 25 additions and 24 deletions
|
|
@ -413,7 +413,7 @@ class Player{
|
|||
* @return Item
|
||||
*/
|
||||
public function getSlot($slot){
|
||||
return $this->inventory[(int)$slot] ?? BlockAPI::getItem(AIR, 0, 0);
|
||||
return $this->inventory[(int)$slot] ?? BlockAPI::getItem(AIR, 0, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -720,7 +720,7 @@ class Player{
|
|||
* @return Item
|
||||
*/
|
||||
public function getArmor($slot){
|
||||
return $this->armor[(int)$slot] ?? BlockAPI::getItem(AIR, 0, 0);
|
||||
return $this->armor[(int)$slot] ?? BlockAPI::getItem(AIR, 0, 0);
|
||||
}
|
||||
|
||||
public function setArmor($slot, Item $armor, $send = true){
|
||||
|
|
@ -1029,7 +1029,8 @@ class Player{
|
|||
}
|
||||
}
|
||||
}
|
||||
reset_spawn_pos:
|
||||
return;
|
||||
reset_spawn_pos:
|
||||
$this->spawnPosition = $this->server->api->level->getDefault()->getSpawn();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue