From 9e28700acfe236979b96a730583418899c3ea68a Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Sun, 3 Sep 2017 02:43:34 +0200 Subject: [PATCH] Attempt to fix #592 Should teleport the player before chunks/world are sent to the player --- src/main/java/fr/xephi/authme/service/TeleportationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/service/TeleportationService.java b/src/main/java/fr/xephi/authme/service/TeleportationService.java index 7b08d24a1..a0f05ed93 100644 --- a/src/main/java/fr/xephi/authme/service/TeleportationService.java +++ b/src/main/java/fr/xephi/authme/service/TeleportationService.java @@ -155,7 +155,7 @@ public class TeleportationService implements Reloadable { * @param event the event to emit and according to which to teleport */ private void performTeleportation(final Player player, final AbstractTeleportEvent event) { - bukkitService.scheduleSyncDelayedTask(new Runnable() { + bukkitService.scheduleSyncTaskFromOptionallyAsyncTask(new Runnable() { @Override public void run() { bukkitService.callEvent(event);