Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Update ActionBarAPI.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Faris Rehman authored Nov 23, 2016
1 parent fa3d7a1 commit 422cb67
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,7 @@ public static void initialiseReflection() {

initialised = true;
} catch (Exception ex) {
try {
String rawVersion = Bukkit.getServer().getClass().getPackage().getName();
String version = rawVersion.substring(rawVersion.lastIndexOf('.') + 1);

if (Class.forName("com.faris.gb.helper.nms." + version) == null) ex.printStackTrace();
} catch (Exception ex2) {
ex.printStackTrace();
}
ex.printStackTrace();

initialised = false;
}
Expand Down

0 comments on commit 422cb67

Please sign in to comment.