mirror of https://github.com/cabaletta/baritone
thank you brigadier very cool
This commit is contained in:
parent
8a5cc5b17d
commit
6bee5828a0
|
@ -105,7 +105,7 @@ 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);
|
||||
server.getCommandManager().handleCommand(server.getCommandSource(), "/difficulty 0");
|
||||
server.getCommandManager().handleCommand(server.getCommandSource(), "/difficulty peaceful");
|
||||
int result = server.getCommandManager().handleCommand(server.getCommandSource(), "/gamerule spawnRadius 0");
|
||||
if (result != 0) {
|
||||
throw new IllegalStateException(result + "");
|
||||
|
|
Loading…
Reference in New Issue