Fixed inconsistencies with vanilla with optimized tnt. Fixes #174

This commit is contained in:
gnembon committed 2020-09-10 15:03:17 -03:00
1 parent 1bec0f88f4
commit e7438573f4
1 file changed
+4 -3
@@ -467,9 +467,10 @@ 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)
{ {
affectedBlockPositionsSet.add(posImmutable != null ? posImmutable : posMutable.toImmutable()); if ((eAccess.getEntity() == null || eAccess.getEntity().canExplosionDestroyBlock(e, eAccess.getWorld(), posMutable, state, size)))
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){