Skip to content

Commit

Permalink
Merge pull request #12 from GTNewHorizons/terrapick-harvestlevel
Browse files Browse the repository at this point in the history
Set harvest level for Terra Shatterer based on mana tier
  • Loading branch information
Dream-Master authored Jun 29, 2022
2 parents 8648533 + a5e1140 commit ef02680
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,15 @@ public IIcon getIcon(ItemStack stack, int pass) {
return pass == 1 && isEnabled(stack) ? iconOverlay : isTipped(stack) ? iconTipped : iconTool;
}

@Override
public int getHarvestLevel(ItemStack stack, String toolClass) {
if (!"pickaxe".equals(toolClass)) {
return super.getHarvestLevel(stack, toolClass);
}
// Rank S -> level 8 (Manyullyn)
return getLevel(stack) + 4;
}

public static boolean isTipped(ItemStack stack) {
return ItemNBTHelper.getBoolean(stack, TAG_TIPPED, false);
}
Expand Down

0 comments on commit ef02680

Please sign in to comment.