From 8973b73bfacd410a89eeeb8e8e3823e0ad8ebcf3 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 20 Aug 2019 14:58:00 -0700 Subject: [PATCH] reduce spamminess --- src/main/java/baritone/utils/BaritoneAutoTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/baritone/utils/BaritoneAutoTest.java b/src/main/java/baritone/utils/BaritoneAutoTest.java index 1c5308de6..e6f08e215 100644 --- a/src/main/java/baritone/utils/BaritoneAutoTest.java +++ b/src/main/java/baritone/utils/BaritoneAutoTest.java @@ -106,11 +106,11 @@ public class BaritoneAutoTest implements AbstractGameEventListener, Helper { if (server != null && server.getWorld(DimensionType.OVERWORLD) != null) { 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) { - throw new IllegalStateException(result + ""); + server.getCommandManager().handleCommand(server.getCommandSource(), "/difficulty peaceful"); + int result = server.getCommandManager().handleCommand(server.getCommandSource(), "/gamerule spawnRadius 0"); + if (result != 0) { + throw new IllegalStateException(result + ""); + } } }