Don't NPE during construction of ModLoadingException..

Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
cpw 2019-06-08 14:30:15 -04:00
parent 728b4857c3
commit 2d32929dc5
No known key found for this signature in database
GPG Key ID: 8EB3DF749553B1B7
1 changed files with 1 additions and 1 deletions

View File

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