From 92464d39c372c66633373e62ef74f8128487e65f Mon Sep 17 00:00:00 2001 From: sys4 Date: Thu, 25 Feb 2021 22:26:10 +0100 Subject: [PATCH] Remove ambient lava sounds since Minetest 5.4.0 includes its own --- ambience/init.lua | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/ambience/init.lua b/ambience/init.lua index e76ec82..6c2007b 100644 --- a/ambience/init.lua +++ b/ambience/init.lua @@ -40,7 +40,7 @@ local desert_frequent_volume = 1.0 local swimming_frequent_frequency = 1000 --swimming splashes local swimming_frequent_volume = 1.0 local water_surface_volume = 1.0 -- sloshing water -local lava_volume = 1.0 --lava +--local lava_volume = 1.0 --lava local flowing_water_volume = .4 --waterfall local splashing_water_volume = 1 local music_frequency = 7 --music (suggestion: keep this one low like around 6) @@ -217,16 +217,16 @@ local flowing_water2 = { {name="small_waterfall", length=11, gain=flowing_water_volume} } -local lava = { - handler = {}, - frequency = 1000, - {name="earth01a", length=20, gain=lava_volume} -} -local lava2 = { - handler = {}, - frequency = 1000, - {name="earth01a", length=15, gain=lava_volume} -} +--local lava = { +-- handler = {}, +-- frequency = 1000, +-- {name="earth01a", length=20, gain=lava_volume} +--} +--local lava2 = { +-- handler = {}, +-- frequency = 1000, +-- {name="earth01a", length=15, gain=lava_volume} +--} local play_music = minetest.setting_getbool("music") or false @@ -271,8 +271,8 @@ local ambienceList = { splashing_water=splashing_water, flowing_water=flowing_water, flowing_water2=flowing_water2, - lava=lava, - lava2=lava2, +-- lava=lava, +-- lava2=lava2, music=music, } @@ -460,13 +460,13 @@ local get_ambience = function(player) -- end --minetest.chat_send_all("not flying!!!!") - if nodes_in_range(pos, 7, "default:lava_flowing")>5 or nodes_in_range(pos, 7, "default:lava_source")>5 then - if music then - return {lava=lava, lava2=lava2, music=music} - else - return {lava=lava} - end - end +-- if nodes_in_range(pos, 7, "default:lava_flowing")>5 or nodes_in_range(pos, 7, "default:lava_source")>5 then +-- if music then +-- return {lava=lava, lava2=lava2, music=music} +-- else +-- return {lava=lava} +-- end +-- end if nodes_in_range(pos, 6, "default:water_flowing")>45 then if music then return {flowing_water=flowing_water, flowing_water2=flowing_water2, music=music}