Fix can't teleport over 128

This commit is contained in:
Dylan K. Taylor 2016-12-20 09:29:17 +00:00
parent 35fbf78a77
commit 76a1165c0e

View File

@ -103,7 +103,7 @@ class TeleportCommand extends VanillaCommand{
}
$x = $this->getRelativeDouble($target->x, $sender, $args[$pos++]);
$y = $this->getRelativeDouble($target->y, $sender, $args[$pos++], 0, 128);
$y = $this->getRelativeDouble($target->y, $sender, $args[$pos++], 0, 256);
$z = $this->getRelativeDouble($target->z, $sender, $args[$pos++]);
$yaw = $target->getYaw();
$pitch = $target->getPitch();