Made fluids block explosions

This commit is contained in:
Joshua Barretto 2020-07-05 11:13:16 +01:00
parent 38c422bef7
commit 92c9db5291

View File

@ -295,7 +295,7 @@ pub fn handle_explosion(server: &Server, pos: Vec3<f32>, power: f32, owner: Opti
let terrain = ecs.read_resource::<TerrainGrid>();
let _ = terrain
.ray(pos, pos + dir * power)
.until(|_| rand::random::<f32>() < 0.05)
.until(|block| block.is_fluid() || rand::random::<f32>() < 0.05)
.for_each(|pos| {
if terrain
.get(pos)