Split Catch Block again

This commit is contained in:
Sn0wStorm
2018-11-01 00:06:07 +01:00
parent 53ecc5c3c0
commit 5b0945732d
+3
View File
@@ -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) {
}