Skip to content

Commit

Permalink
The piercing damage of arrows/bolts doesn't determine whether an enti…
Browse files Browse the repository at this point in the history
…ty has been hit anymore (since it always hits since it's unblockable)
  • Loading branch information
bonii-xx committed Dec 3, 2014
1 parent 011298e commit d2b06da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/main/java/tconstruct/library/entity/ProjectileBase.java
Expand Up @@ -33,7 +33,6 @@ public abstract class ProjectileBase extends EntityArrow implements IEntityAddit
public final static String stoneSound = Reference.resource("stoneHit");

public ItemStack returnStack;
public int returnStackSlot;

public boolean bounceOnNoDamage = true;
public boolean defused = false; // if this is true it wont hit any entities anymore
Expand Down Expand Up @@ -67,7 +66,6 @@ public ProjectileBase(World world, EntityPlayer player, float speed, float accur
this.setThrowableHeading(this.motionX, this.motionY, this.motionZ, speed, accuracy);

// our stuff
returnStackSlot = player.inventory.currentItem;
returnStack = stack;

/*
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/tconstruct/weaponry/entity/ArrowEntity.java
Expand Up @@ -101,7 +101,8 @@ public boolean dealDamage(float damage, ToolCore ammo, NBTTagCompound tags, Enti

//Minecraft.getMinecraft().thePlayer.sendChatMessage("Piercing Damage: " + shift);

dealtDamage |= entityHit.attackEntityFrom(damagesource, shift);
// piercing damage does not affect wether the entity was hit (return value), since it should go through always
entityHit.attackEntityFrom(damagesource, shift);
}

return dealtDamage;
Expand Down

0 comments on commit d2b06da

Please sign in to comment.