mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 10:34:49 +00:00
Better error passing from early to game client launch.
This commit is contained in:
1 parent
c6e7bbe18b
commit
d5e04dbcb5
16 files changed
+183
-119
No files matched your search
@@ -59,8 +59,8 @@ public class ModLoadingException extends RuntimeException
|
||||
this.context = Arrays.asList(context);
|
||||
}
|
||||
|
||||
static ModLoadingException fromEarlyException(final EarlyLoadingException e) {
|
||||
return new ModLoadingException(null, ModLoadingStage.VALIDATE, e.getI18NMessage(), e, e.getContext().toArray());
|
||||
static Stream<ModLoadingException> fromEarlyException(final EarlyLoadingException e) {
|
||||
return e.getAllData().stream().map(ed->new ModLoadingException(null, ModLoadingStage.VALIDATE, ed.getI18message(), e.getCause(), ed.getArgs()));
|
||||
}
|
||||
|
||||
public String getI18NMessage() {
|
||||
|
||||
Reference in new issue
Block a user