Sounds for crossbow/arrow break!

This commit is contained in:
Bernhard Bonigl committed 2014-10-05 23:14:41 +02:00
1 parent ef0ae6141a
commit 2370b0cc35
2 files changed
+4 -2

No files matched your search

@@ -49,8 +49,10 @@ public class ArrowEntity extends ProjectileBase {
// we might break! oh noez!
float chance = returnStack.getTagCompound().getCompoundTag("InfiTool").getFloat("BreakChance");
if(chance > TConstruct.random.nextFloat())
if(chance > TConstruct.random.nextFloat()) {
this.setDead();
this.playSound("random.break", 1.0F, 1.5F / (this.rand.nextFloat() * 0.2F + 0.9F));
}
}
@Override