Skip to content

Commit d05d034

Browse files
committed
fix jump command teleport rotation
1 parent 6425d53 commit d05d034

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/uravgcode/modernessentials/command/JumpCommand.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ private int execute(CommandContext<CommandSourceStack> context) throws CommandSy
2525
final var block = player.getTargetBlockExact(300);
2626
if (block != null) {
2727
final var location = block.getLocation();
28+
location.setYaw(player.getYaw());
29+
location.setPitch(player.getPitch());
2830
location.add(0, 1, 0);
2931
player.teleportAsync(location, TeleportCause.COMMAND);
3032
}

0 commit comments

Comments
 (0)