mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
Added "player.teleport"
This commit is contained in:
parent
2305322ed0
commit
4564765470
1 changed files with 5 additions and 1 deletions
|
|
@ -599,6 +599,10 @@ class Player{
|
||||||
if($pitch === false){
|
if($pitch === false){
|
||||||
$pitch = $this->entity->pitch;
|
$pitch = $this->entity->pitch;
|
||||||
}
|
}
|
||||||
|
if($this->server->api->dhandle("player.teleport", array("player" => $this, "target" => $pos)) === false){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$this->lastCorrect = $pos;
|
$this->lastCorrect = $pos;
|
||||||
$this->entity->fallY = false;
|
$this->entity->fallY = false;
|
||||||
$this->entity->fallStart = false;
|
$this->entity->fallStart = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue