Fixed strings not using string's "equals" function

This commit is contained in:
coolGi
2023-10-02 13:19:20 +10:30
parent d9e3293cf3
commit 9b183aba93
@@ -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;