mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Fixed teleport crash
This commit is contained in:
@ -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,
|
||||
));
|
||||
|
Reference in New Issue
Block a user