Add back unregisters
This commit is contained in:
@@ -180,7 +180,7 @@ public class ChatboxPanelManager
|
||||
log.warn("Exception closing {}", currentInput.getClass(), e);
|
||||
}
|
||||
|
||||
// eventBus.unregister(currentInput);
|
||||
eventBus.unregister(currentInput);
|
||||
if (currentInput instanceof KeyListener)
|
||||
{
|
||||
keyManager.unregisterKeyListener((KeyListener) currentInput);
|
||||
|
||||
@@ -392,7 +392,7 @@ public class PluginManager
|
||||
try
|
||||
{
|
||||
unschedule(plugin);
|
||||
// eventBus.unregister(plugin);
|
||||
eventBus.unregister(plugin);
|
||||
|
||||
// plugins always stop in the event thread
|
||||
SwingUtilities.invokeAndWait(() ->
|
||||
|
||||
@@ -192,7 +192,7 @@ public class GameEventManager
|
||||
});
|
||||
});
|
||||
|
||||
// eventBus.unregister(subscriber);
|
||||
eventBus.unregister(subscriber);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user