From 72a3b419e8064f06becf324176548f5f0b6d6384 Mon Sep 17 00:00:00 2001 From: LRFLEW Date: Sun, 4 Sep 2011 13:31:22 -0500 Subject: [PATCH] Checks to see if the task ID is referencing a "unable to schedule" event before setting it --- src/com/wimbli/WorldBorder/WorldFillTask.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/wimbli/WorldBorder/WorldFillTask.java b/src/com/wimbli/WorldBorder/WorldFillTask.java index 975710e..c83cb5f 100644 --- a/src/com/wimbli/WorldBorder/WorldFillTask.java +++ b/src/com/wimbli/WorldBorder/WorldFillTask.java @@ -97,7 +97,8 @@ public class WorldFillTask implements Runnable } public void setTaskID(int ID) - { + { + if (ID == -1) this.stop(); this.taskID = ID; }