Disable refmap if running from GradleStart

This commit is contained in:
Mumfrey committed 2016-03-01 18:46:50 +00:00
1 parent 4ad037ade1
commit c1e2c9c0d1
2 files changed
+6 -1

No files matched your search

@@ -133,6 +133,11 @@ public abstract class MixinBootstrap {
if (!MixinBootstrap.initialised) {
MixinBootstrap.initialised = true;
String command = System.getProperty("sun.java.command");
if (command != null && command.contains("GradleStart")) {
System.setProperty("mixin.env.disableRefMap", "true");
}
if (MixinBootstrap.findInStackTrace(Launch.class.getName(), "launch") > 132) {
MixinBootstrap.logger.error("Initialising mixin subsystem after game pre-init phase! Some mixins may be skipped.");
@@ -1119,7 +1119,7 @@ public class PrettyPrinter {
this.recalcWidth = false;
for (Object line : this.lines) {
if (line instanceof IVariableWidthEntry) {
this.width = Math.max(this.width, ((IVariableWidthEntry)line).getWidth());
this.width = Math.min(4096, Math.max(this.width, ((IVariableWidthEntry)line).getWidth()));
}
}
}