Преглед на файлове

Tridents are tools too

(cherry picked from commit 1b74c0bd920cf32499ecdb2c285917f2e41cef44)
t00thpick1 преди 6 години
родител
ревизия
77c12dcc20
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/gmail/nossr50/util/ItemUtils.java

+ 1 - 1
src/main/java/com/gmail/nossr50/util/ItemUtils.java

@@ -366,7 +366,7 @@ public final class ItemUtils {
      * @return true if the item is a tool, false otherwise
      * @return true if the item is a tool, false otherwise
      */
      */
     public static boolean isMinecraftTool(ItemStack item) {
     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;
     }
     }
 
 
     /**
     /**