- Added 1.7.10 Buildcraft support

- Exceptions can now log to the minetweaker log, for easier bug resolution
- /mt hand now copies to the clipboard too
- /mt hand now outputs ore dictionary entries to which it belongs
- Reducing verbosity a bit
This commit is contained in:
Stan Hebben committed 2014-10-08 14:50:50 +02:00
1 parent 86a3568e9e
commit a8aae17d8a
29 files changed
+1289 -24

No files matched your search

@@ -24,4 +24,7 @@ public interface ILogger {
@ZenMethod
public void logError(String message);
@ZenMethod
public void logError(String message, Throwable exception);
}
@@ -137,8 +137,7 @@ public class MTTweaker implements ITweaker {
//ex.printStackTrace();
MineTweakerAPI.logError("Error parsing " + ex.getFile().getFileName() + ":" + ex.getLine() + " -- " + ex.getExplanation());
} catch (Exception ex) {
MineTweakerAPI.logError("Error loading " + script.getName() + ": " + ex.toString());
ex.printStackTrace();
MineTweakerAPI.logError("Error loading " + script.getName() + ": " + ex.toString(), ex);
}
if (reader != null) {
@@ -156,9 +155,8 @@ public class MTTweaker implements ITweaker {
// execute scripts
ZenModule module = new ZenModule(classes, MineTweakerAPI.class.getClassLoader());
module.getMain().run();
} catch (Exception ex) {
MineTweakerAPI.logError("Error executing " + script.getGroupName() + ": " + ex.getMessage());
ex.printStackTrace();
} catch (Throwable ex) {
MineTweakerAPI.logError("Error executing " + script.getGroupName() + ": " + ex.getMessage(), ex);
}
}
}