This commit is contained in:
C10udburst
2022-02-16 13:22:49 +01:00
parent e16006a79e
commit 8f3e2406b6

View File

@@ -28,7 +28,7 @@ public class UpdateUtil {
.getAsString().trim();
JsonObject tag = Http.get("https://api.github.com/repos/AntiCope/meteor-rejects/git/ref/tags/"+TAGNAME).sendJson(JsonObject.class);
if (tag.get("object").getAsJsonObject().get("sha").getAsString().trim() == gitHash) return;
if (tag.get("object").getAsJsonObject().get("sha").getAsString().trim().equals(gitHash)) return;
mc.getToastManager().add(new MeteorToast(Items.BARRIER, "New Rejects update.", "Download it from Github", 8000));
}