+ 修复异常拦截管得太宽的问题
+ 修复强制更新命令
This commit is contained in:
parent
62a11cb53a
commit
f0e157d3a7
@ -63,7 +63,7 @@ public class FilterExceptionMirror extends TLoggerFilterHandler {
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
if (plugin.get() != null) {
|
||||
if (plugin.get() != null && (TabooLib.isTabooLib(plugin.get()) || TabooLib.isDependTabooLib(plugin.get()))) {
|
||||
TLocale.Logger.error("TFILTER.EXCEPTION-MIRROR." + message + ".HEAD", args.run());
|
||||
for (int i = 0; i < stackTraces.size(); i++) {
|
||||
StackTraceElement stack = stackTraces.get(i);
|
||||
|
@ -84,7 +84,7 @@ public class UpdateTask {
|
||||
}
|
||||
|
||||
public static void updatePlugin(boolean shutdown, boolean force) {
|
||||
if (!UpdateTask.isHaveUpdate() || (newVersion == 0 || !force)) {
|
||||
if (!UpdateTask.isHaveUpdate() && (newVersion == 0 || !force)) {
|
||||
TLocale.Logger.info("COMMANDS.TABOOLIB.UPDATEPLUGIN.UPDATE-NOT-FOUND");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user