mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Don't NPE during construction of ModLoadingException..
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user