diff --git a/libLauncher/src/main/java/ru/gravit/utils/event/EventManager.java b/libLauncher/src/main/java/ru/gravit/utils/event/EventManager.java index 46cff5f1..1efc9f1b 100644 --- a/libLauncher/src/main/java/ru/gravit/utils/event/EventManager.java +++ b/libLauncher/src/main/java/ru/gravit/utils/event/EventManager.java @@ -13,12 +13,12 @@ public class EventManager { public static final int INITIAL_HANDLERS_SIZE = 16; public class Entry { - public Entry(EventHandler func, UUID[] events) { + public Entry(EventHandler func, UUID[] events) { this.func = func; this.events = events; } - EventHandler func; + EventHandler func; UUID[] events; } public class QueueEntry @@ -33,7 +33,7 @@ public QueueEntry(EventInterface event, UUID key) { } public ArrayList handlers = new ArrayList<>(INITIAL_HANDLERS_SIZE); public BlockingQueue queue = new LinkedBlockingQueue<>(QUEUE_MAX_SIZE); //Максимальный размер очереди - public int registerHandler(EventHandler func, UUID[] events) + public int registerHandler(EventHandler func, UUID[] events) { Arrays.sort(events); handlers.add(new Entry(func,events));