mirror of
https://github.com/GTNewHorizons/WailaHarvestability.git
synced 2026-11-25 06:14:34 +00:00
1 parent
a5955cbd76
commit
5db5d64fda
1 file changed
+5
-1
@@ -47,7 +47,11 @@ public class ToolHelper
|
||||
|
||||
public static int getToolHarvestLevel(ItemTool tool, ItemStack toolStack)
|
||||
{
|
||||
String toolClass = ToolHelper.getToolClassesOf(toolStack).iterator().next();
|
||||
Set<String> toolClasses = ToolHelper.getToolClassesOf(toolStack);
|
||||
if (toolClasses.isEmpty())
|
||||
return 0;
|
||||
|
||||
String toolClass = toolClasses.iterator().next();
|
||||
return tool.getHarvestLevel(toolStack, toolClass, null, null);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user