Skip to content

Commit

Permalink
Fix arrows not hitting stuff after being deflected/damage rejected
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Dec 13, 2014
1 parent da25492 commit f906759
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/tconstruct/library/entity/ProjectileBase.java
Expand Up @@ -171,6 +171,7 @@ public void onHitBlock(MovingObjectPosition movingobjectposition) {
this.inGround = true;
this.arrowShake = 7;
this.setIsCritical(false);
this.defused = true; // defuse it so it doesn't hit stuff anymore, being weird

if (this.field_145790_g.getMaterial() != Material.air)
{
Expand Down Expand Up @@ -237,7 +238,6 @@ public void onHitEntity(MovingObjectPosition movingobjectposition) {
this.rotationYaw += 180.0F;
this.prevRotationYaw += 180.0F;
this.ticksInAir = 0;
defused = true;
return;
}
// we hit it, BURNNNNNN
Expand All @@ -261,7 +261,6 @@ public void onHitEntity(MovingObjectPosition movingobjectposition) {
this.motionY = 0;
this.motionZ = 0;
this.ticksInAir = 0;
defused = true;
}
}
}
Expand Down

0 comments on commit f906759

Please sign in to comment.