Skip to content

Commit

Permalink
Add a notice about TitleUtils performance
Browse files Browse the repository at this point in the history
  • Loading branch information
SakuraKoi committed Jul 23, 2020
1 parent 73dbb12 commit a8066f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sakura/kooi/BridgingAnalyzer/Utils/TitleUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public class TitleUtils {
private static String version = org.bukkit.Bukkit.getServer().getClass().getPackage().getName()
.split("\\.")[3];

// 这个效率实在太低了, 但是我懒得改了, 性能洁癖的自己改吧 (又不是不能用.jpg

private static Class<?> getNMSClass(String name) {
try {
return Class.forName("net.minecraft.server." + version + "." + name);
Expand Down Expand Up @@ -54,7 +56,6 @@ public static void boardcastTitle(String title, String subtitle, int fadeIn, int
try {
sendTitle(p, title, subtitle, fadeIn, stay, fadeOut);
} catch (Exception e) {
// TODO �Զ���ɵ� catch ��
e.printStackTrace();
}
}
Expand Down

0 comments on commit a8066f9

Please sign in to comment.