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:
parent
1ac17e5d56
commit
244bf0dc5d
|
@ -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?");
|
||||
|
||||
|
|
Loading…
Reference in New Issue