Skip to content

Commit 0b3665e

Browse files
committed
Only teleport asynchronously
1 parent 6fe345b commit 0b3665e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/de/pascalpex/pexnpc/commands/subcommands/TpSubcommand.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public int run(CommandContext<CommandSourceStack> context) {
2424
player.setGameMode(GameMode.SPECTATOR);
2525
}
2626
if (executor != null) {
27-
executor.teleport(npc.getLocation());
2827
executor.teleportAsync(npc.getLocation()).thenAccept(success -> {
2928
if (success) {
3029
if (executor instanceof Player player) {

0 commit comments

Comments
 (0)