From cf85faf47ebf95e81aab7be562f17d542eb5cf11 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Thu, 25 Feb 2016 23:31:12 +0100 Subject: [PATCH] Missed setting task reference --- src/com/massivecraft/massivecore/Engine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/massivecraft/massivecore/Engine.java b/src/com/massivecraft/massivecore/Engine.java index eae3da98..4820e54b 100644 --- a/src/com/massivecraft/massivecore/Engine.java +++ b/src/com/massivecraft/massivecore/Engine.java @@ -114,11 +114,11 @@ public abstract class Engine implements Active, Listener, Runnable { if (this.isSync()) { - Bukkit.getScheduler().runTaskTimer(this.getPlugin(), this, this.getDelay(), this.getPeriod()); + this.task = Bukkit.getScheduler().runTaskTimer(this.getPlugin(), this, this.getDelay(), this.getPeriod()); } else { - Bukkit.getScheduler().runTaskTimerAsynchronously(this.getPlugin(), this, this.getDelay(), this.getPeriod()); + this.task = Bukkit.getScheduler().runTaskTimerAsynchronously(this.getPlugin(), this, this.getDelay(), this.getPeriod()); } } }