mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-31 12:23:51 -07:00
Added a default to EventHandler.priority()
Fixed HandlerList.unregisterAll() Fixed incorrect isAssignableFrom check in SimplePluginManager.getRegistrationClass() By: zml2008 <zach@zachsthings.com>
This commit is contained in:
@@ -11,5 +11,5 @@ public @interface EventHandler {
|
||||
|
||||
Class<? extends Event> event();
|
||||
|
||||
EventPriority priority();
|
||||
EventPriority priority() default EventPriority.NORMAL;
|
||||
}
|
||||
|
@@ -50,7 +50,9 @@ public class HandlerList {
|
||||
|
||||
public static void unregisterAll() {
|
||||
for (HandlerList h : alllists) {
|
||||
h.handlerslots.clear();
|
||||
for (List<RegisteredListener> list : h.handlerslots.values()) {
|
||||
list.clear();
|
||||
}
|
||||
h.baked = false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user