mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Small changes, Ellie
This commit is contained in:
parent
d0a08d16e7
commit
9ef2dc6fe1
3 changed files with 4 additions and 4 deletions
|
|
@ -92,7 +92,7 @@ class Player{
|
|||
}
|
||||
|
||||
public function save(){
|
||||
if(is_object($this->entity)){
|
||||
if($this->entity instanceof Entity){
|
||||
$this->data["spawn"] = array(
|
||||
"x" => $this->entity->x,
|
||||
"y" => $this->entity->y,
|
||||
|
|
@ -521,7 +521,7 @@ class Player{
|
|||
}
|
||||
break;
|
||||
case MC_MOVE_PLAYER:
|
||||
if(is_object($this->entity)){
|
||||
if($this->entity instanceof Entity){
|
||||
$this->entity->setPosition($data["x"], $data["y"], $data["z"], $data["yaw"], $data["pitch"]);
|
||||
$this->server->api->dhandle("player.move", $this->entity);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue