Improves some code

This commit is contained in:
2022-02-09 16:47:37 +01:00
parent 5f4a90aabb
commit 61b05bcce9
2 changed files with 6 additions and 13 deletions

View File

@@ -72,9 +72,7 @@ public class PlayerTeleporter extends Teleporter {
}
//Set the velocity of the teleported player after the teleportation is finished
Bukkit.getScheduler().scheduleSyncDelayedTask(Stargate.getInstance(), () -> {
player.setVelocity(newVelocity);
}, 1);
Bukkit.getScheduler().scheduleSyncDelayedTask(Stargate.getInstance(), () -> player.setVelocity(newVelocity), 1);
}
}