mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
CMD Selectors [@all, @player, @random]
This commit is contained in:
parent
c6c82f7e55
commit
d0d5c1bb79
3 changed files with 76 additions and 18 deletions
|
|
@ -209,7 +209,7 @@ class Player{
|
|||
"z" => $this->entity->z,
|
||||
));
|
||||
$this->data->set("spawn", array(
|
||||
"level" => $this->entity->level->getName(),
|
||||
"level" => $this->spawnPosition->level->getName(),
|
||||
"x" => $this->spawnPosition->x,
|
||||
"y" => $this->spawnPosition->y,
|
||||
"z" => $this->spawnPosition->z,
|
||||
|
|
@ -558,6 +558,10 @@ class Player{
|
|||
if($pitch === false){
|
||||
$pitch = $this->entity->yaw;
|
||||
}
|
||||
if($pos instanceof Position and $pos->level !== $this->level){
|
||||
$this->level = $pos->level;
|
||||
$this->chunksLoaded = array();
|
||||
}
|
||||
$this->lastCorrect = $pos;
|
||||
$this->entity->fallY = false;
|
||||
$this->entity->fallStart = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue