mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-24 18:09:41 -05:00
Fixed empty check in PluginCommand
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
1 parent
81023892fe
commit
f0ab429e01
2 files changed
+1
-4
No files matched your search
@@ -217,7 +217,6 @@ public final class SimplePluginManager implements PluginManager {
|
||||
*/
|
||||
public void registerEvent(Event.Type type, Listener listener, Priority priority, Plugin plugin) {
|
||||
PriorityQueue<RegisteredListener> eventListeners = listeners.get(type);
|
||||
int position = 0;
|
||||
|
||||
if (eventListeners == null) {
|
||||
eventListeners = new PriorityQueue<RegisteredListener>(11,
|
||||
|
||||
Reference in new issue
Block a user