mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-27 03:27:39 +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
|
||||
*/
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user