From 01cf3c67a6cc3e7adc84c300e6ad242121a3f40c Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 23 Jul 2019 19:25:48 -0700 Subject: [PATCH] whatever this works lol --- src/main/java/baritone/utils/BaritoneAutoTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/baritone/utils/BaritoneAutoTest.java b/src/main/java/baritone/utils/BaritoneAutoTest.java index 9c2b80618..b581839d4 100644 --- a/src/main/java/baritone/utils/BaritoneAutoTest.java +++ b/src/main/java/baritone/utils/BaritoneAutoTest.java @@ -105,8 +105,10 @@ public class BaritoneAutoTest implements AbstractGameEventListener, Helper { // to our defined starting position if (server != null && server.getWorld(DimensionType.OVERWORLD) != null) { server.getWorld(DimensionType.OVERWORLD).setSpawnPoint(STARTING_POSITION); - throw new UnsupportedOperationException("TODO figure out how to set SPAWN_RADIUS"); - //server.getWorld(DimensionType.OVERWORLD).getGameRules().get(GameRules.SPAWN_RADIUS).func_223554_b(null, "0"); // TODO I HAVE NO IDEA + int result = server.getCommandManager().handleCommand(server.getCommandSource(), "/gamerule spawnRadius 0"); + if (result != 0) { + throw new IllegalStateException(result + ""); + } } if (event.getType() == TickEvent.Type.IN) { // If we're in-game