1
0
forked from xjboss/KCauldronX
KCauldronX/patches/org/bukkit/plugin/SimpleServicesManager.java.patch
2015-03-22 20:38:04 +03:00

13 lines
707 B
Diff

--- ../src-base/minecraft/org/bukkit/plugin/SimpleServicesManager.java
+++ ../src-work/minecraft/org/bukkit/plugin/SimpleServicesManager.java
@@ -79,7 +79,8 @@
while (it2.hasNext()) {
RegisteredServiceProvider<?> registered = it2.next();
- if (registered.getPlugin().equals(plugin)) {
+ Plugin oPlugin = registered.getPlugin();
+ if (oPlugin != null ? oPlugin.equals(plugin) : plugin == null) {
it2.remove();
unregisteredEvents.add(new ServiceUnregisterEvent(registered));
}