Backport. Also fixed an NPE with darts apparently.
This commit is contained in:
parent
65a4dfa17f
commit
ba375e6a74
|
@ -532,6 +532,14 @@ public class EntitySlider extends EntityFlying implements IAetherBoss {
|
|||
|
||||
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?");
|
||||
|
||||
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?");
|
||||
|
|
|
@ -393,7 +393,7 @@ public abstract class EntityDartBase extends EntityArrow implements IProjectile,
|
|||
}
|
||||
}
|
||||
|
||||
if (movingobjectposition.entityHit != null)
|
||||
if (movingobjectposition.entityHit != null && movingobjectposition.typeOfHit != null && this.shootingEntity != null)
|
||||
{
|
||||
if (movingobjectposition.entityHit != this.shootingEntity && movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.ENTITY && movingobjectposition.entityHit != this.shootingEntity.riddenByEntity)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue