diff --git a/Cargo.toml b/Cargo.toml index b61170e..c1c299e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "minecraft-data-rs" -version = "0.4.0" +version = "0.4.1" authors = ["trivernis "] edition = "2018" readme = "README.md" diff --git a/src/api/versions.rs b/src/api/versions.rs index eb2b0cf..66fcc29 100644 --- a/src/api/versions.rs +++ b/src/api/versions.rs @@ -26,13 +26,13 @@ pub fn versions_by_minecraft_version() -> DataResult> { /// Returns the latest stable version (hardcoded at the moment) pub fn latest_stable() -> DataResult { versions_by_minecraft_version()? - .get("1.16.5") + .get("1.18.1") .cloned() - .ok_or(DataError::NotFoundError("1.16.5".to_string())) + .ok_or(DataError::NotFoundError("1.18.1".to_string())) } /// Returns a list of available version information -pub(crate) fn available_versions() -> DataResult> { +pub fn available_versions() -> DataResult> { let content = get_common_file(VERSIONS_FILE)?; serde_json::from_str::>(&*content).map_err(DataError::from) }