From 9b183aba9318ffdbcfd5f245f89fe0904de3489d Mon Sep 17 00:00:00 2001 From: coolGi Date: Mon, 2 Oct 2023 13:19:20 +1030 Subject: [PATCH] Fixed strings not using string's "equals" function --- .../seibel/distanthorizons/core/jar/updater/SelfUpdater.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/jar/updater/SelfUpdater.java b/core/src/main/java/com/seibel/distanthorizons/core/jar/updater/SelfUpdater.java index 273a684e1..87b604764 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/jar/updater/SelfUpdater.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/jar/updater/SelfUpdater.java @@ -128,13 +128,13 @@ public class SelfUpdater return false; com.electronwill.nightconfig.core.Config pipeline = GitlabGetter.INSTANCE.projectPipelines.get(0); - if (pipeline.get("ref") != ModGitInfo.Git_Main_Branch) + if (!pipeline.get("ref").equals(ModGitInfo.Git_Main_Branch)) { LOGGER.warn("Latest pipeline was found for branch ["+ pipeline.get("ref") +"], but we are on branch ["+ ModGitInfo.Git_Main_Branch +"]."); return false; } - if (pipeline.get("status") != "success") + if (!pipeline.get("status").equals("success")) { LOGGER.warn("Pipeline for branch ["+ ModGitInfo.Git_Main_Branch +"], commit ["+ pipeline.get("id") +"], has either failed to build, or still building."); return false;