mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed teleport crash
This commit is contained in:
parent
d573f8f6da
commit
ab3862446c
3 changed files with 8 additions and 7 deletions
|
|
@ -96,11 +96,11 @@ class PlayerAPI{
|
|||
public function tppos($name, $x, $y, $z){
|
||||
$player = $this->get($name);
|
||||
if($player !== false){
|
||||
$this->player->dataPacket(MC_MOVE_PLAYER, array(
|
||||
"eid" => $player->eid,
|
||||
"x" => $player->x,
|
||||
"y" => $player->y,
|
||||
"z" => $player->z,
|
||||
$player->dataPacket(MC_MOVE_PLAYER, array(
|
||||
"eid" => 0,
|
||||
"x" => $x,
|
||||
"y" => $y,
|
||||
"z" => $z,
|
||||
"yaw" => 0,
|
||||
"pitch" => 0,
|
||||
));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue