mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Reinforced on projectiles causes them to sometimes not break when hitting entities!
This commit is contained in:
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()) {
|
||||
|
||||
Reference in new issue
Block a user