+ 修复异常拦截管得太宽的问题

+ 修复强制更新命令
This commit is contained in:
坏黑 2018-11-30 10:19:36 +08:00
parent 62a11cb53a
commit f0e157d3a7
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;
}