Water and lava block blast resistance overrides should apply to their respective fluids too #1244
-
Not sure whether this should be classified as a bug report or feature request but I'll go with the latter. Right now, lowering the blast resistance of water and lava blocks in the
@Override
protected float getExplosionResistance() {
return 100.0F;
} In public Optional<Float> getBlockExplosionResistance(Explosion explosion, BlockGetter world, BlockPos pos, BlockState blockState, FluidState fluidState) {
return blockState.isAir() && fluidState.isEmpty() ? Optional.empty() : Optional.of(Math.max(blockState.getBlock().getExplosionResistance(), fluidState.getExplosionResistance()));
} So the problem is that there is no way to reduce the blast resistance of water and lava using the current There are several reasons why a server could want to do this. In my case, I would like underwater explosions to work. The fact that they do not work is currently a significant problem on my server since it revolves around naval combat. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
implemented as of 789233a on build #1906 |
Beta Was this translation helpful? Give feedback.
implemented as of 789233a on build #1906