mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 12:55:10 +00:00
Play extinguish sound when rain extinguishes flame
This commit is contained in:
parent
7dce9bf429
commit
39f2da10ee
1 changed files with 9 additions and 8 deletions
|
@ -180,6 +180,7 @@ if weather.allow_abm then
|
|||
if rain.raining and rain.extinguish_fire then
|
||||
if weather.is_outdoor(pos) then
|
||||
minetest.remove_node(pos)
|
||||
minetest.sound_play("fire_extinguish_flame", {pos = pos, max_hear_distance = 16, gain = 0.15})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue