More precision in block stats

This commit is contained in:
Anuken
2025-08-15 20:35:36 -04:00
parent 915c8090c7
commit 8251b33a03
7 changed files with 11 additions and 16 deletions

View File

@@ -816,9 +816,6 @@ public class Mods implements Loadable{
public void loadScripts(){
if(skipModCode) return;
Time.mark();
boolean[] any = {false};
try{
eachEnabled(mod -> {
if(mod.root.child("scripts").exists()){
@@ -831,7 +828,6 @@ public class Mods implements Loadable{
if(scripts == null){
scripts = platform.createScripts();
}
any[0] = true;
scripts.run(mod, main);
}catch(Throwable e){
Core.app.post(() -> {
@@ -847,10 +843,6 @@ public class Mods implements Loadable{
}finally{
content.setCurrentMod(null);
}
if(any[0]){
Log.info("Time to initialize modded scripts: @", Time.elapsed());
}
}
/** Creates all the content found in mod files. */