mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-04 22:51:29 +01:00
Fixed another nullcheck in pluginmanager
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
d98a5eadfe
commit
331ba1b6a2
@ -194,7 +194,7 @@ public final class SimplePluginManager implements PluginManager {
|
||||
List<RegisteredListener> eventListeners = listeners.get(type);
|
||||
int position = 0;
|
||||
|
||||
if (listeners != null) {
|
||||
if (eventListeners != null) {
|
||||
for (RegisteredListener registration : eventListeners) {
|
||||
if (registration.getPriority().compareTo(priority) < 0) {
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user