Added back old code to detect TiC Pickaxes, seems that for some reason they don't fall under canHarvestBlock([stone]).

This commit is contained in:
bconlon 2020-12-25 21:55:37 -08:00
parent 1ac17e5d56
commit 244bf0dc5d
1 changed files with 3 additions and 1 deletions

View File

@ -530,7 +530,9 @@ public class EntitySlider extends EntityFlying implements IAetherBoss {
return false;
}
if (!stack.getItem().canHarvestBlock(Blocks.stone, stack))
boolean isTCPickaxe = stack.getItem().getClass().getName().equals("tconstruct.items.tools.Pickaxe");
if (!stack.getItem().canHarvestBlock(Blocks.stone, stack) && !isTCPickaxe)
{
this.sendMessage(player, "Hmm. Perhaps I need to attack it with a Pickaxe?");