From 4557bab3c47b6d79f30bf1d8297dde47e92098ea Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 20 Aug 2019 14:49:11 -0700 Subject: [PATCH] maybe travis fix --- src/main/java/baritone/utils/BaritoneAutoTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/utils/BaritoneAutoTest.java b/src/main/java/baritone/utils/BaritoneAutoTest.java index 2453f90cb..1c5308de6 100644 --- a/src/main/java/baritone/utils/BaritoneAutoTest.java +++ b/src/main/java/baritone/utils/BaritoneAutoTest.java @@ -104,7 +104,9 @@ public class BaritoneAutoTest implements AbstractGameEventListener, Helper { // If the integrated server is launched and the world has initialized, set the spawn point // to our defined starting position if (server != null && server.getWorld(DimensionType.OVERWORLD) != null) { - server.getWorld(DimensionType.OVERWORLD).setSpawnPoint(STARTING_POSITION); + if (mc.player == null) { + server.getWorld(DimensionType.OVERWORLD).setSpawnPoint(STARTING_POSITION); + } server.getCommandManager().handleCommand(server.getCommandSource(), "/difficulty peaceful"); int result = server.getCommandManager().handleCommand(server.getCommandSource(), "/gamerule spawnRadius 0"); if (result != 0) {