diff --git a/src/fr/neatmonster/nocheatplus/utilities/TickTask.java b/src/fr/neatmonster/nocheatplus/utilities/TickTask.java index 8e2937ca..60c39e8f 100644 --- a/src/fr/neatmonster/nocheatplus/utilities/TickTask.java +++ b/src/fr/neatmonster/nocheatplus/utilities/TickTask.java @@ -190,6 +190,14 @@ public class TickTask implements Runnable { TickTask.locked = locked; } + /** + * Empty queues (call after setLocked(true) + */ + public static void purge(){ + permissionUpdates.clear(); + delayedActions.clear(); + } + ////////////////////////// // Instance methods //////////////////////////