From 99710cedd7b9114cb0ccd9f7b3fd59ba8d744619 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 10 Nov 2019 09:15:59 +0000 Subject: [PATCH] add check for env_sounds to disable water flowing sfx --- soundsets.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/soundsets.lua b/soundsets.lua index ebf9151..e2d9fc3 100644 --- a/soundsets.lua +++ b/soundsets.lua @@ -43,6 +43,10 @@ ambience.add_set("splash", { end, }) +-- check for env_sounds mod, if not found enable water flowing sounds + +if not minetest.get_modpath("env_sounds") then + -- Water sound plays when near flowing water, will get louder if more than 50 ambience.add_set("flowing_water", { @@ -84,6 +88,9 @@ ambience.add_set("river", { end, nodes = {"default:river_water_flowing"} }) +else + print ("[Ambience] found env_sounds, flowing water sounds disabled") +end -- Small fire sound plays when near flame, will get louder if more than 3