Accept needs to be called before init. Propagate exception message.

Closes #360
This commit is contained in:
Mumfrey committed 2019-09-18 19:15:36 +01:00
1 parent d28607b86a
commit 5ea23f8bb0
2 files changed
+3 -3

No files matched your search

@@ -140,7 +140,7 @@ public class MixinPlatformAgentFMLLegacy extends MixinPlatformAgentAbstract impl
@Override
public boolean accept(MixinPlatformManager manager, IContainerHandle handle) {
if (!(handle instanceof ContainerHandleURI)) {
if (!(handle instanceof ContainerHandleURI) || !super.accept(manager, handle)) {
return false;
}
@@ -148,7 +148,7 @@ public class MixinPlatformAgentFMLLegacy extends MixinPlatformAgentAbstract impl
this.fileName = this.file.getName();
this.coreModWrapper = this.initFMLCoreMod();
return super.accept(manager, handle);
return true;
}
/**