Only set arrow entities dead if they can actually be picked up

This commit is contained in:
Bernhard Bonigl committed 2014-09-24 18:29:52 +02:00
1 parent 11039c9f2d
commit 315aac7679
1 file changed
+2 -1
@@ -64,7 +64,8 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
{
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();
}
}
}