Update EventBus to address concurrency issue in ModLauncher Factory. Closes #8924

This commit is contained in:
LexManos committed 2022-08-07 17:35:15 -07:00
1 parent 7b97c181b9
commit c807665ab9
5 files changed
+9 -4

No files matched your search

@@ -36,7 +36,7 @@ public class NetworkInstance
this.networkProtocolVersion = networkProtocolVersion.get();
this.clientAcceptedVersions = clientAcceptedVersions;
this.serverAcceptedVersions = serverAcceptedVersions;
this.networkEventBus = BusBuilder.builder().setExceptionHandler(this::handleError).build();
this.networkEventBus = BusBuilder.builder().setExceptionHandler(this::handleError).useModLauncher().build();
}
private void handleError(IEventBus iEventBus, Event event, IEventListener[] iEventListeners, int i, Throwable throwable)