Fixed NPE in dedicated server languages. And fixed logger for main FML event bus.
This commit is contained in:
parent
07a2b67b7f
commit
7973984227
2 changed files with 15 additions and 7 deletions
|
@ -63,7 +63,14 @@ public class LoadController
|
|||
public LoadController(Loader loader)
|
||||
{
|
||||
this.loader = loader;
|
||||
this.masterChannel = new EventBus("FMLMainChannel");
|
||||
this.masterChannel = new EventBus(new SubscriberExceptionHandler()
|
||||
{
|
||||
@Override
|
||||
public void handleException(Throwable exception, SubscriberExceptionContext context)
|
||||
{
|
||||
FMLLog.log("FMLMainChannel", Level.ERROR, exception, "Could not dispatch event: %s to %s", context.getEvent(), context.getSubscriberMethod());
|
||||
}
|
||||
});
|
||||
this.masterChannel.register(this);
|
||||
|
||||
state = LoaderState.NOINIT;
|
||||
|
|
|
@ -256,6 +256,7 @@ public class FMLServerHandler implements IFMLSidedHandler
|
|||
IOUtils.closeQuietly(stream);
|
||||
try
|
||||
{
|
||||
if (zip != null)
|
||||
zip.close();
|
||||
}
|
||||
catch (IOException e)
|
||||
|
|
Loading…
Reference in a new issue