+ 修复两个碧油鸡

This commit is contained in:
坏黑 2018-10-11 00:19:32 +08:00
parent 732f0bf093
commit 64aba798c3
3 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>me.skymc</groupId>
<artifactId>TabooLib</artifactId>
<version>4.52</version>
<version>4.53</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@ -94,7 +94,6 @@ public class TLocale {
}
public static List<String> setColored(List<String> args) {
TLib.getTLib().getLogger().error(Strings.replaceWithOrder(TLib.getInternalLanguage().getString("LOCALE-ERROR-REASON"), ""));
return args.stream().map(var -> ChatColor.translateAlternateColorCodes('&', var)).collect(Collectors.toList());
}

View File

@ -58,6 +58,7 @@ public class TInjectLoader implements TabooLibLoader.Loader {
continue;
}
try {
declaredField.setAccessible(true);
tInjectTask.run(plugin, declaredField, annotation.value());
} catch (Exception e) {
TLogger.getGlobalLogger().error(declaredField.getName() + " inject failed: " + e.getMessage());