From 58ae5fd6b7b6ebd545d163fb26baa58c88e43d1f Mon Sep 17 00:00:00 2001 From: MATRIX-feather Date: Sun, 3 Nov 2024 10:10:55 +0800 Subject: [PATCH] misc: Handle versions that are not on the same channel --- src/main/java/xyz/nifeather/morph/updates/UpdateHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/xyz/nifeather/morph/updates/UpdateHandler.java b/src/main/java/xyz/nifeather/morph/updates/UpdateHandler.java index 35fe289d..bcb34db6 100644 --- a/src/main/java/xyz/nifeather/morph/updates/UpdateHandler.java +++ b/src/main/java/xyz/nifeather/morph/updates/UpdateHandler.java @@ -222,6 +222,9 @@ private void onUpdateReqFinish(String responseStr, int reqId, return; } + if (compare == VersionHandling.CompareResult.NOT_ON_SAME_CHANNEL) + logger.info("We are not on the same channel with the latest release, assuming there is a new update!"); + // 提醒服务器关于更新的消息 var serverOps = Bukkit.getOperators(); var sendTargets = new ObjectArrayList();