Skip to content

Commit fbea583

Browse files
committed
Modrinth versions API: filter only stable releases
1 parent de77287 commit fbea583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/pro/cloudnode/smp/bankaccounts/ModrinthUpdate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public ModrinthUpdate(final @NotNull String version, final @NotNull String name)
3636
final @NotNull String pluginVersion = plugin.getPluginMeta().getVersion();
3737
try {
3838
final @NotNull HttpRequest req = HttpRequest.newBuilder()
39-
.uri(URI.create("https://api.modrinth.com/v2/project/Dc8RS2En/version?game_versions=[%22" + mcVersion + "%22]"))
39+
.uri(URI.create("https://api.modrinth.com/v2/project/Dc8RS2En/version?version_type=release&game_versions=[%22" + mcVersion + "%22]"))
4040
.header("User-Agent", pluginName + "/" + pluginVersion).GET().build();
4141
final @NotNull HttpResponse<@NotNull String> res = HttpClient.newHttpClient()
4242
.send(req, HttpResponse.BodyHandlers.ofString());

0 commit comments

Comments
 (0)