This commit is contained in:
Brady 2018-09-26 16:21:53 -05:00
parent 9094c712d6
commit 1d931a4bb6
No known key found for this signature in database
GPG Key ID: 73A788379A197567
2 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ public enum Baritone {
PathingBehavior.INSTANCE PathingBehavior.INSTANCE
); );
} }
if (BaritoneAutoTest.ENABLE_AUTO_TEST && "true".equals(System.getenv("BARITONE_AUTO_TEST"))) { if (BaritoneAutoTest.ENABLE_AUTO_TEST) {
registerEventListener(BaritoneAutoTest.INSTANCE); registerEventListener(BaritoneAutoTest.INSTANCE);
} }
this.dir = new File(Minecraft.getMinecraft().gameDir, "baritone"); this.dir = new File(Minecraft.getMinecraft().gameDir, "baritone");

View File

@ -37,7 +37,7 @@ public class BaritoneAutoTest implements AbstractGameEventListener, Helper {
private BaritoneAutoTest() {} private BaritoneAutoTest() {}
public static final boolean ENABLE_AUTO_TEST = true; public static final boolean ENABLE_AUTO_TEST = "true".equals(System.getenv("BARITONE_AUTO_TEST"));
private static final long TEST_SEED = -928872506371745L; private static final long TEST_SEED = -928872506371745L;
private static final BlockPos STARTING_POSITION = new BlockPos(0, 65, 0); private static final BlockPos STARTING_POSITION = new BlockPos(0, 65, 0);
private static final Goal GOAL = new GoalBlock(69, 121, 420); private static final Goal GOAL = new GoalBlock(69, 121, 420);
@ -47,7 +47,7 @@ public class BaritoneAutoTest implements AbstractGameEventListener, Helper {
* Called right after the {@link GameSettings} object is created in the {@link Minecraft} instance. * Called right after the {@link GameSettings} object is created in the {@link Minecraft} instance.
*/ */
public void onPreInit() { public void onPreInit() {
if (!BaritoneAutoTest.ENABLE_AUTO_TEST || !"true".equals(System.getenv("BARITONE_AUTO_TEST"))) { if (!BaritoneAutoTest.ENABLE_AUTO_TEST) {
return; return;
} }
System.out.println("Optimizing Game Settings"); System.out.println("Optimizing Game Settings");