mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-18 23:09:12 +00:00
Accept needs to be called before init. Propagate exception message.
Closes #360
This commit is contained in:
1 parent
d28607b86a
commit
5ea23f8bb0
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -797,7 +797,7 @@ class MixinInfo implements Comparable<MixinInfo>, IMixinInfo {
|
||||
} catch (InvalidMixinException ex) {
|
||||
throw ex;
|
||||
} catch (Exception ex) {
|
||||
throw new InvalidMixinException(this, ex);
|
||||
throw new InvalidMixinException(this, ex.getMessage(), ex);
|
||||
}
|
||||
|
||||
if (!this.type.isLoadable()) {
|
||||
|
||||
Reference in new issue
Block a user