mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-15 20:51:27 +01:00
Last one?
Fixes WORLDGUARD-3694.
This commit is contained in:
parent
53e8b780bc
commit
8765bbb192
@ -696,11 +696,15 @@ public static boolean isMinecart(Material material) {
|
|||||||
* @return true if a Boat item
|
* @return true if a Boat item
|
||||||
*/
|
*/
|
||||||
public static boolean isBoat(Material material) {
|
public static boolean isBoat(Material material) {
|
||||||
|
try {
|
||||||
return material == Material.BOAT
|
return material == Material.BOAT
|
||||||
|| material == Material.BOAT_ACACIA
|
|| material == Material.BOAT_ACACIA
|
||||||
|| material == Material.BOAT_SPRUCE
|
|| material == Material.BOAT_SPRUCE
|
||||||
|| material == Material.BOAT_DARK_OAK
|
|| material == Material.BOAT_DARK_OAK
|
||||||
|| material == Material.BOAT_JUNGLE;
|
|| material == Material.BOAT_JUNGLE;
|
||||||
|
} catch (NoSuchFieldError ignored) {
|
||||||
|
return material == Material.BOAT;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user