We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6425d53 commit d05d034Copy full SHA for d05d034
src/main/java/com/uravgcode/modernessentials/command/JumpCommand.java
@@ -25,6 +25,8 @@ private int execute(CommandContext<CommandSourceStack> context) throws CommandSy
25
final var block = player.getTargetBlockExact(300);
26
if (block != null) {
27
final var location = block.getLocation();
28
+ location.setYaw(player.getYaw());
29
+ location.setPitch(player.getPitch());
30
location.add(0, 1, 0);
31
player.teleportAsync(location, TeleportCause.COMMAND);
32
}
0 commit comments