Tridents are tools too

(cherry picked from commit 1b74c0bd920cf32499ecdb2c285917f2e41cef44)
This commit is contained in:
t00thpick1 2019-01-05 00:04:58 -05:00
parent 7581425f87
commit 77c12dcc20

View File

@ -366,7 +366,7 @@ public final class ItemUtils {
* @return true if the item is a tool, false otherwise
*/
public static boolean isMinecraftTool(ItemStack item) {
return isStoneTool(item) || isWoodTool(item) || isGoldTool(item) || isIronTool(item) || isDiamondTool(item) || isStringTool(item);
return isStoneTool(item) || isWoodTool(item) || isGoldTool(item) || isIronTool(item) || isDiamondTool(item) || isStringTool(item) || item.getType() == Material.TRIDENT;
}
/**