Added server mod error check
This commit is contained in:
@@ -54,9 +54,10 @@ public abstract class Content implements Comparable<Content>{
|
||||
/** The mod that loaded this piece of content. */
|
||||
public @Nullable LoadedMod mod;
|
||||
/** File that this content was loaded from. */
|
||||
public @Nullable
|
||||
Fi sourceFile;
|
||||
public @Nullable Fi sourceFile;
|
||||
/** The error that occurred during loading, if applicable. Null if no error occurred. */
|
||||
public @Nullable String error;
|
||||
/** Base throwable that caused the error. */
|
||||
public @Nullable Throwable baseError;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -437,6 +437,7 @@ public class ContentParser{
|
||||
content.minfo.mod = mod;
|
||||
content.minfo.sourceFile = file;
|
||||
content.minfo.error = makeError(error, file);
|
||||
content.minfo.baseError = error;
|
||||
if(mod != null){
|
||||
mod.erroredContent.add(content);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user