This commit is contained in:
Leijurv 2018-11-13 20:11:51 -08:00
parent 0302c6f14b
commit 2675852dbe
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -42,7 +42,6 @@ public class BaritoneAutoTest implements AbstractGameEventListener, Helper {
private static final Goal GOAL = new GoalBlock(69, 121, 420); private static final Goal GOAL = new GoalBlock(69, 121, 420);
private static final int MAX_TICKS = 3500; private static final int MAX_TICKS = 3500;
private static final Baritone baritone = Baritone.INSTANCE; private static final Baritone baritone = Baritone.INSTANCE;
private static final IPlayerContext ctx = baritone.getPlayerContext();
/** /**
* 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.
@ -72,7 +71,7 @@ public class BaritoneAutoTest implements AbstractGameEventListener, Helper {
@Override @Override
public void onTick(TickEvent event) { public void onTick(TickEvent event) {
IPlayerContext ctx = baritone.getPlayerContext();
// If we're on the main menu then create the test world and launch the integrated server // If we're on the main menu then create the test world and launch the integrated server
if (mc.currentScreen instanceof GuiMainMenu) { if (mc.currentScreen instanceof GuiMainMenu) {
System.out.println("Beginning Baritone automatic test routine"); System.out.println("Beginning Baritone automatic test routine");