Reinforced on projectiles causes them to sometimes not break when hitting entities!

This commit is contained in:
Bernhard Bonigl committed 2014-10-26 19:42:27 +01:00
1 parent 08cd6c5354
commit f9fedafa60
2 files changed
+51 -39

No files matched your search

@@ -48,6 +48,9 @@ public class ArrowEntity extends ProjectileBase {
public void onHitBlock(MovingObjectPosition movingobjectposition) {
super.onHitBlock(movingobjectposition);
if(defused)
return;
// we might break! oh noez!
float chance = returnStack.getTagCompound().getCompoundTag("InfiTool").getFloat("BreakChance");
if(chance > TConstruct.random.nextFloat()) {