Skip to content

Commit 69bc735

Browse files
committed
fix sentinel only downloading owo for the minecraft version it was compiled against
1 parent 9829de8 commit 69bc735

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

owo-sentinel/src/main/java/io/wispforest/owosentinel/OwoSentinel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static List<String> listOwoDependents() {
7979
@SuppressWarnings("deprecation")
8080
public static void downloadAndInstall(Consumer<String> logger) throws Exception {
8181
logger.accept("Fetching versions");
82-
final URL url = new URL("https://api.modrinth.com/v2/project/owo-lib/version?game_versions=[%22" + SharedConstants.getGameVersion().name() + "%22]&loaders=[%22fabric%22]");
82+
final URL url = new URL("https://api.modrinth.com/v2/project/owo-lib/version?game_versions=[%22" + FabricLoader.getInstance().getRawGameVersion() + "%22]&loaders=[%22fabric%22]");
8383

8484
final var response = GSON.fromJson(new InputStreamReader(url.openStream()), JsonArray.class);
8585

0 commit comments

Comments
 (0)