mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
The piercing damage of arrows/bolts doesn't determine whether an entity has been hit anymore (since it always hits since it's unblockable)
This commit is contained in:
1 parent
011298e0b8
commit
d2b06da1ec
2 files changed
+2
-3
No files matched your search
@@ -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
|
||||
@@ -67,7 +66,6 @@ public abstract class ProjectileBase extends EntityArrow implements IEntityAddit
|
||||
this.setThrowableHeading(this.motionX, this.motionY, this.motionZ, speed, accuracy);
|
||||
|
||||
// our stuff
|
||||
returnStackSlot = player.inventory.currentItem;
|
||||
returnStack = stack;
|
||||
|
||||
/*
|
||||
|
||||
@@ -101,7 +101,8 @@ public class ArrowEntity extends ProjectileBase {
|
||||
|
||||
//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;
|
||||
|
||||
Reference in new issue
Block a user