aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/update
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-02-16 17:52:40 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-02-16 17:52:40 +0800
commit2e0e576b64545cb45a0ab3e0d0fe81cfb7a61307 (patch)
tree33ab48fd72c49fa1b2a78c05b29de67da7ab6064 /src/main/java/me/shedaniel/rei/update
parent074a627663e0150e23d47a87486afb852dd2cfdd (diff)
downloadRoughlyEnoughItems-2.3.0.17.tar.gz
RoughlyEnoughItems-2.3.0.17.tar.bz2
RoughlyEnoughItems-2.3.0.17.zip
Same as v2.3 in Fabricv2.3.0.17
Diffstat (limited to 'src/main/java/me/shedaniel/rei/update')
-rw-r--r--src/main/java/me/shedaniel/rei/update/UpdateChecker.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/me/shedaniel/rei/update/UpdateChecker.java b/src/main/java/me/shedaniel/rei/update/UpdateChecker.java
index 46ee48c69..7f29478a5 100644
--- a/src/main/java/me/shedaniel/rei/update/UpdateChecker.java
+++ b/src/main/java/me/shedaniel/rei/update/UpdateChecker.java
@@ -5,7 +5,6 @@ import com.google.gson.*;
import com.google.gson.annotations.SerializedName;
import me.shedaniel.rei.client.ConfigHelper;
import org.apache.commons.io.IOUtils;
-import org.dimdev.riftloader.listener.InitializationListener;
import java.io.IOException;
import java.io.InputStream;
@@ -17,7 +16,7 @@ import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
-public class UpdateChecker implements InitializationListener {
+public class UpdateChecker {
private static final Gson GSON = new GsonBuilder().setPrettyPrinting().disableHtmlEscaping().create();
private static final Version CURRENT_VERSION = new Version("2.2.0.16");
@@ -93,8 +92,7 @@ public class UpdateChecker implements InitializationListener {
return objects.get(objects.size() - 1).getModVersion();
}
- @Override
- public void onInitialization() {
+ public static void onInitialization() {
if (!checkUpdates())
return;
InputStream downloadedStream = downloadVersionString();