Don't NPE during construction of ModLoadingException..
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
parent
728b4857c3
commit
2d32929dc5
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ public class ModLoadingException extends RuntimeException
|
|||
private final List<Object> context;
|
||||
|
||||
public ModLoadingException(final IModInfo modInfo, final ModLoadingStage errorStage, final String i18nMessage, final Throwable originalException, Object... context) {
|
||||
super(ForgeI18n.parseMessage(i18nMessage, Streams.concat(Stream.of(modInfo, errorStage, originalException), Stream.of(context)).toArray()), originalException);
|
||||
super("Mod Loading Exception : "+i18nMessage, originalException);
|
||||
this.modInfo = modInfo;
|
||||
this.errorStage = errorStage;
|
||||
this.i18nMessage = i18nMessage;
|
||||
|
|
Loading…
Reference in a new issue