Revert "plugin manager: register plugins with immediate event bus"
This reverts commit 0469cfcc61.
This commit is contained in:
@@ -52,7 +52,6 @@ import java.util.Set;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.inject.Named;
|
||||
import javax.inject.Singleton;
|
||||
import javax.swing.SwingUtilities;
|
||||
import lombok.Setter;
|
||||
@@ -82,10 +81,6 @@ public class PluginManager
|
||||
@Inject
|
||||
EventBus eventBus;
|
||||
|
||||
@Inject
|
||||
@Named("Immediate EventBus")
|
||||
EventBus immediateEventBus;
|
||||
|
||||
@Inject
|
||||
Scheduler scheduler;
|
||||
|
||||
@@ -321,7 +316,6 @@ public class PluginManager
|
||||
log.debug("Plugin {} is now running", plugin.getClass().getSimpleName());
|
||||
regionTileManager.simulateObjectSpawns(plugin);
|
||||
eventBus.register(plugin);
|
||||
immediateEventBus.register(plugin);
|
||||
schedule(plugin);
|
||||
eventBus.post(new PluginChanged(plugin, true));
|
||||
}
|
||||
@@ -346,7 +340,6 @@ public class PluginManager
|
||||
{
|
||||
unschedule(plugin);
|
||||
eventBus.unregister(plugin);
|
||||
immediateEventBus.unregister(plugin);
|
||||
|
||||
// plugins always stop in the event thread
|
||||
SwingUtilities.invokeAndWait(() ->
|
||||
|
||||
Reference in New Issue
Block a user