Skip to content

Commit cf0b2fa

Browse files
committed
Fix snapshot url format again...
Signed-off-by: KiriCattus <[email protected]>
1 parent eeafc71 commit cf0b2fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/minecraft/MinecraftUpdateNotifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected EmbedBuilder getEmbed(@Nullable final VersionsInfo oldVersion, final @
9595
final String changelogUrl;
9696
if (snapshot.contains("snapshot")) {
9797
// new format already includes 'snapshot' and the version prefix
98-
changelogUrl = "https://www.minecraft.net/en-us/article/minecraft-%s".formatted(snapshot);
98+
changelogUrl = "https://www.minecraft.net/en-us/article/minecraft-%s".formatted(snapshot).replace(".", "-");
9999
} else {
100100
// old format like '23w07a'
101101
changelogUrl = "https://www.minecraft.net/en-us/article/minecraft-snapshot-%s".formatted(snapshot);

0 commit comments

Comments
 (0)