This commit is contained in:
@@ -425,6 +425,7 @@ public class Mods implements Loadable{
|
||||
/** This must be run on the main thread! */
|
||||
public void loadScripts(){
|
||||
Time.mark();
|
||||
boolean[] any = {false};
|
||||
|
||||
try{
|
||||
eachEnabled(mod -> {
|
||||
@@ -438,6 +439,7 @@ public class Mods implements Loadable{
|
||||
if(scripts == null){
|
||||
scripts = platform.createScripts();
|
||||
}
|
||||
any[0] = true;
|
||||
scripts.run(mod, main);
|
||||
}catch(Throwable e){
|
||||
Core.app.post(() -> {
|
||||
@@ -454,7 +456,9 @@ public class Mods implements Loadable{
|
||||
content.setCurrentMod(null);
|
||||
}
|
||||
|
||||
Log.info("Time to initialize modded scripts: @", Time.elapsed());
|
||||
if(any[0]){
|
||||
Log.info("Time to initialize modded scripts: @", Time.elapsed());
|
||||
}
|
||||
}
|
||||
|
||||
/** Creates all the content found in mod files. */
|
||||
|
||||
Reference in New Issue
Block a user