mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-17 02:34:30 +01:00
Fixed another nullcheck in pluginmanager
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
d98a5eadfe
commit
331ba1b6a2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue