Removed some leftover code.

This commit is contained in:
bconlon 2020-08-29 15:08:57 -07:00
parent b72fb204cc
commit 3416ca13f6

View file

@ -530,9 +530,6 @@ public class EntitySlider extends EntityFlying implements IAetherBoss {
return false;
}
boolean isTCPickaxe = stack.getItem().getClass().getName().equals("tconstruct.items.tools.Pickaxe");
if (!stack.getItem().canHarvestBlock(Blocks.stone, stack))
{
this.sendMessage(player, "Hmm. Perhaps I need to attack it with a Pickaxe?");
@ -540,20 +537,6 @@ public class EntitySlider extends EntityFlying implements IAetherBoss {
return false;
}
if (!isTCPickaxe) {
if (!(stack.getItem() instanceof ItemPickaxe) && !(stack.getItem() instanceof ItemAetherTool)) {
this.sendMessage(player, "Hmm. Perhaps I need to attack it with a Pickaxe?");
return false;
}
if (stack.getItem() instanceof ItemAetherTool && ((ItemAetherTool) stack.getItem()).toolType != EnumAetherToolType.PICKAXE) {
this.sendMessage(player, "Hmm. Perhaps I need to attack it with a Pickaxe?");
return false;
}
}
boolean flag = super.attackEntityFrom(ds, Math.max(0, var2));
if (flag) {