From 9625d3ef567b16e0f0648b3c374809439a89cace Mon Sep 17 00:00:00 2001 From: vengestone-dragoon <97992930+vengestone-dragoon@users.noreply.github.com> Date: Sun, 23 Jun 2024 12:45:21 -0400 Subject: [PATCH] fix force update error --- .../client/tasks/updater/plugins/TaskPluginsUpdater.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/osiris/autoplug/client/tasks/updater/plugins/TaskPluginsUpdater.java b/src/main/java/com/osiris/autoplug/client/tasks/updater/plugins/TaskPluginsUpdater.java index 62e83437..dfbaa578 100644 --- a/src/main/java/com/osiris/autoplug/client/tasks/updater/plugins/TaskPluginsUpdater.java +++ b/src/main/java/com/osiris/autoplug/client/tasks/updater/plugins/TaskPluginsUpdater.java @@ -488,7 +488,8 @@ private void doDownloadLogic(@NotNull MinecraftPlugin pl, SearchResult result) { String resultBukkitId = result.getBukkitId(); if (pl.getCustomDownloadURL() != null) downloadUrl = pl.getCustomDownloadURL(); - if (pl.forceUpdate.equals("true") && code == 0) + if (pl.forceUpdate != null && code == 0) + if (pl.forceUpdate.equals("true")) code = 1; if (code == 0) {