Skip to content

Commit

Permalink
Only set arrow entities dead if they can actually be picked up
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Sep 24, 2014
1 parent 11039c9 commit 315aac7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/tconstruct/tools/entity/ArrowEntity.java
Expand Up @@ -64,7 +64,8 @@ public void onCollideWithPlayer (EntityPlayer par1EntityPlayer)
{
this.playSound("random.pop", 0.2F, ((this.rand.nextFloat() - this.rand.nextFloat()) * 0.7F + 1.0F) * 2.0F);
par1EntityPlayer.onItemPickup(this, 1);
this.setDead();
if(returnStack.stackSize <= 0)
this.setDead();
}
}
}
Expand Down

0 comments on commit 315aac7

Please sign in to comment.