made appliance ignore destruct when no listeners
This commit is contained in:
1 parent
bff8cf24cd
commit
6ed48895ca
1 file changed
+1
@@ -102,6 +102,7 @@ public abstract class Appliance {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void destruct(@NotNull JavaPlugin plugin) {
|
public void destruct(@NotNull JavaPlugin plugin) {
|
||||||
|
if(this.listeners == null) return;
|
||||||
this.listeners.forEach(HandlerList::unregisterAll);
|
this.listeners.forEach(HandlerList::unregisterAll);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user