Skip to content

Commit

Permalink
Add 1.21.4
Browse files Browse the repository at this point in the history
  • Loading branch information
cassiancc committed Dec 3, 2024
1 parent 9513d27 commit 6df447a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions version_resolver/src/minecraft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ pub enum MinecraftVersion {
Minecraft1_21_2,
#[serde(rename = "1.21.3")]
Minecraft1_21_3,
#[serde(rename = "1.21.4")]
Minecraft1_21_4,
}

impl MinecraftVersion {
Expand Down Expand Up @@ -71,6 +73,7 @@ impl MinecraftVersion {
Self::Minecraft1_21_1 => "1.21.1",
Self::Minecraft1_21_2 => "1.21.2",
Self::Minecraft1_21_3 => "1.21.3",
Self::Minecraft1_21_4 => "1.21.4",
}
}

Expand Down Expand Up @@ -139,6 +142,7 @@ impl MinecraftVersion {
Self::Minecraft1_21_1 => None,
Self::Minecraft1_21_2 => None,
Self::Minecraft1_21_3 => None,
Self::Minecraft1_21_4 => None,
}
}

Expand All @@ -162,6 +166,7 @@ impl MinecraftVersion {
Self::Minecraft1_21_1 => "13",
Self::Minecraft1_21_2 => "14",
Self::Minecraft1_21_3 => "14",
Self::Minecraft1_21_4 => "15",

}
}
Expand All @@ -175,6 +180,7 @@ impl MinecraftVersion {
Self::Minecraft1_21_1 => Some("4"),
Self::Minecraft1_21_2 => Some("4"),
Self::Minecraft1_21_3 => Some("4"),
Self::Minecraft1_21_4 => Some("4"),
_ => None,
}
}
Expand All @@ -188,6 +194,7 @@ impl MinecraftVersion {
Self::Minecraft1_21_1 => Some("21.1"),
Self::Minecraft1_21_2 => Some("21.2"),
Self::Minecraft1_21_3 => Some("21.3"),
Self::Minecraft1_21_4 => Some("21.4"),
_ => None,
}
}
Expand All @@ -200,6 +207,7 @@ impl MinecraftVersion {
Self::Minecraft1_21_1 => Some("1.21"),
Self::Minecraft1_21_2 => Some("1.21"),
Self::Minecraft1_21_3 => Some("1.21"),
Self::Minecraft1_21_4 => Some("1.21"),
_ => None,
}
}
Expand All @@ -224,6 +232,7 @@ impl MinecraftVersion {
Self::Minecraft1_21_1 => None,
Self::Minecraft1_21_2 => None,
Self::Minecraft1_21_3 => None,
Self::Minecraft1_21_4 => None,
}
}

Expand Down

0 comments on commit 6df447a

Please sign in to comment.