Skip to content

Commit

Permalink
Split Catch Block again
Browse files Browse the repository at this point in the history
  • Loading branch information
Sn0wStorm committed Oct 31, 2018
1 parent 53ecc5c commit 5b09457
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/com/dre/brewery/LegacyUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public class LegacyUtil {
try {
GET_MATERIAL = Material.class.getDeclaredMethod("getMaterial", int.class);
GET_BLOCK_TYPE_ID_AT = World.class.getDeclaredMethod("getBlockTypeIdAt", Location.class);
} catch (NoSuchMethodException | SecurityException ignored) {
}
try {
SET_DATA = Class.forName(Bukkit.getServer().getClass().getPackage().getName() + ".block.CraftBlock").getDeclaredMethod("setData", byte.class);
} catch (ClassNotFoundException | NoSuchMethodException | SecurityException ignored) {
}
Expand Down

0 comments on commit 5b09457

Please sign in to comment.