Last one?

Fixes WORLDGUARD-3694.
This commit is contained in:
wizjany 2016-05-25 21:09:43 -04:00
parent 53e8b780bc
commit 8765bbb192

View File

@ -696,11 +696,15 @@ public static boolean isMinecart(Material material) {
* @return true if a Boat item
*/
public static boolean isBoat(Material material) {
return material == Material.BOAT
|| material == Material.BOAT_ACACIA
|| material == Material.BOAT_SPRUCE
|| material == Material.BOAT_DARK_OAK
|| material == Material.BOAT_JUNGLE;
try {
return material == Material.BOAT
|| material == Material.BOAT_ACACIA
|| material == Material.BOAT_SPRUCE
|| material == Material.BOAT_DARK_OAK
|| material == Material.BOAT_JUNGLE;
} catch (NoSuchFieldError ignored) {
return material == Material.BOAT;
}
}
/**