mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-25 22:14:53 +02:00
Fix RelativeVector from test
This commit is contained in:
parent
283469e025
commit
e3c47e60ba
|
@ -38,7 +38,7 @@ public class TeleportCommand extends Command {
|
|||
final Player player = sender.asPlayer();
|
||||
|
||||
final RelativeVec relativeVec = args.getRelativeVector("pos");
|
||||
final Position position = relativeVec.from(player).toPosition();
|
||||
final Position position = relativeVec.from(player.getPosition()).toPosition();
|
||||
|
||||
player.teleport(position);
|
||||
player.sendMessage("You have been teleported to " + position);
|
||||
|
|
Loading…
Reference in New Issue
Block a user