From 0ea163e3eeb754ea593506bdb482bb13b7363941 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Fri, 8 Aug 2014 00:01:57 -0400 Subject: [PATCH] Lazy fix --- .../nossr50/runnables/player/PlayerProfileLoadingTask.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/runnables/player/PlayerProfileLoadingTask.java b/src/main/java/com/gmail/nossr50/runnables/player/PlayerProfileLoadingTask.java index a33ff97ba..75d3c64bf 100644 --- a/src/main/java/com/gmail/nossr50/runnables/player/PlayerProfileLoadingTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/player/PlayerProfileLoadingTask.java @@ -23,6 +23,11 @@ public class PlayerProfileLoadingTask extends BukkitRunnable { this.player = player; } + private PlayerProfileLoadingTask(Player player, int attempt) { + this.player = player; + this.attempt = attempt; + } + // WARNING: ASYNC TASK // DO NOT MODIFY THE McMMOPLAYER FROM THIS CODE @Override @@ -50,7 +55,7 @@ public class PlayerProfileLoadingTask extends BukkitRunnable { player.sendMessage(LocaleLoader.getString("Profile.Loading.Failure").split("\n")); return; } - this.runTaskLaterAsynchronously(mcMMO.p, 100 * attempt); + new PlayerProfileLoadingTask(player, attempt).runTaskLaterAsynchronously(mcMMO.p, 100 * attempt); } private class ApplySuccessfulProfile extends BukkitRunnable {