whatever this works lol

This commit is contained in:
Leijurv
2019-07-23 19:25:48 -07:00
parent 36315c5151
commit 01cf3c67a6

View File

@@ -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