mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-09 00:41:37 +01: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