From 6256703d0161eec6e375473c97af2751b6ce0768 Mon Sep 17 00:00:00 2001 From: asofold Date: Sun, 13 Jan 2013 20:45:15 +0100 Subject: [PATCH] Have TickTask be locked from the start. --- .../java/fr/neatmonster/nocheatplus/utilities/TickTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/utilities/TickTask.java b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/utilities/TickTask.java index 3f0bf7b5..7b17f64d 100644 --- a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/utilities/TickTask.java +++ b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/utilities/TickTask.java @@ -16,7 +16,7 @@ import fr.neatmonster.nocheatplus.checks.access.ICheckData; import fr.neatmonster.nocheatplus.players.DataManager; /** - * Task to run every tick, to update permissions and execute actions, and maybe later for extended lag measurement. + * Task to run every tick, to update permissions and execute actions, and for lag measurement. * *
* The permissions updates and actions execution is meant for use by the asynchronously run checks, not for normal use. @@ -76,7 +76,7 @@ public class TickTask implements Runnable { protected static long timeLast = 0; /** Lock flag set on disable. */ - protected static boolean locked = false; + protected static boolean locked = true; static{ for (int i = 0; i < spikeDurations.length; i++){