mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Sounds for crossbow/arrow break!
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user