Add method to empty request queues for TickTask.

This commit is contained in:
asofold 2012-12-02 16:59:59 +01:00
parent 2a8b6e3ad2
commit a156d1117b

View File

@ -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
//////////////////////////