Fixed NPE in dedicated server languages. And fixed logger for main FML event bus.

This commit is contained in:
LexManos 2016-04-06 02:11:27 -07:00
parent 07a2b67b7f
commit 7973984227
2 changed files with 15 additions and 7 deletions

View file

@ -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;

View file

@ -256,6 +256,7 @@ public class FMLServerHandler implements IFMLSidedHandler
IOUtils.closeQuietly(stream);
try
{
if (zip != null)
zip.close();
}
catch (IOException e)