Fixed inconsistencies with vanilla with optimized tnt. Fixes #174
This commit is contained in:
1 parent
1bec0f88f4
commit
e7438573f4
1 file changed
+3
-2
@@ -467,8 +467,9 @@ public class OptimizedExplosion
|
|||||||
size -= (resistance + 0.3F) * 0.3F;
|
size -= (resistance + 0.3F) * 0.3F;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size > 0.0F && (eAccess.getEntity() == null || eAccess.getEntity().canExplosionDestroyBlock(e, eAccess.getWorld(), posMutable, state, size)))
|
if (size > 0.0F)
|
||||||
{
|
{
|
||||||
|
if ((eAccess.getEntity() == null || eAccess.getEntity().canExplosionDestroyBlock(e, eAccess.getWorld(), posMutable, state, size)))
|
||||||
affectedBlockPositionsSet.add(posImmutable != null ? posImmutable : posMutable.toImmutable());
|
affectedBlockPositionsSet.add(posImmutable != null ? posImmutable : posMutable.toImmutable());
|
||||||
}
|
}
|
||||||
else if (firstRay)
|
else if (firstRay)
|
||||||
@@ -541,7 +542,7 @@ public class OptimizedExplosion
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
showTNTblastChance(e);
|
//showTNTblastChance(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void showTNTblastChance(Explosion e){
|
private static void showTNTblastChance(Explosion e){
|
||||||
|
|||||||
Reference in new issue
Block a user