From 4b9a99dcf8d41e0ddb085187bc6e66d0459dc5a1 Mon Sep 17 00:00:00 2001 From: Bram Date: Mon, 8 Jul 2024 11:23:12 +0200 Subject: [PATCH] Changed: Marked GithubUpdater#getLatestVersion as private to prevent people from calling it in a sync context --- api/src/main/java/me/tofaa/entitylib/utils/GithubUpdater.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/me/tofaa/entitylib/utils/GithubUpdater.java b/api/src/main/java/me/tofaa/entitylib/utils/GithubUpdater.java index 6022bef..71add2a 100644 --- a/api/src/main/java/me/tofaa/entitylib/utils/GithubUpdater.java +++ b/api/src/main/java/me/tofaa/entitylib/utils/GithubUpdater.java @@ -45,7 +45,7 @@ public void checkForUpdates() { } @Blocking - public PEVersion getLatestVersion() throws IOException { + private PEVersion getLatestVersion() throws IOException { URL url = new URL("https://api.github.com/repos/" + org + "/" + repo + "/releases/latest"); URLConnection connection = url.openConnection(); connection.addRequestProperty("User-Agent", "Mozilla/5.0");