545556575859606162
if (selectedEntry >= worlds.length) { selectedEntry = worlds.length - 1; } if (event.key.id == input.action.id && event.type == InputEventType.PRESSED) { game.setWorld(new World(game, worldFiles[selectedEntry])); close(); } }