Remove ambient lava sounds since Minetest 5.4.0 includes its own
This commit is contained in:
		| @@ -40,7 +40,7 @@ local desert_frequent_volume = 1.0 | |||||||
| local swimming_frequent_frequency = 1000  --swimming splashes | local swimming_frequent_frequency = 1000  --swimming splashes | ||||||
| local swimming_frequent_volume = 1.0  | local swimming_frequent_volume = 1.0  | ||||||
| local water_surface_volume = 1.0   -- sloshing water | 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 flowing_water_volume = .4  --waterfall | ||||||
| local splashing_water_volume = 1 | local splashing_water_volume = 1 | ||||||
| local music_frequency = 7  --music (suggestion: keep this one low like around 6) | 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} | 	{name="small_waterfall", length=11, gain=flowing_water_volume} | ||||||
| } | } | ||||||
|  |  | ||||||
| local lava = { | --local lava = { | ||||||
| 	handler = {}, | --	handler = {}, | ||||||
| 	frequency = 1000, | --	frequency = 1000, | ||||||
| 	{name="earth01a", length=20, gain=lava_volume} | --	{name="earth01a", length=20, gain=lava_volume} | ||||||
| } | --} | ||||||
| local lava2 = { | --local lava2 = { | ||||||
| 	handler = {}, | --	handler = {}, | ||||||
| 	frequency = 1000, | --	frequency = 1000, | ||||||
| 	{name="earth01a", length=15, gain=lava_volume} | --	{name="earth01a", length=15, gain=lava_volume} | ||||||
| } | --} | ||||||
|  |  | ||||||
|  |  | ||||||
| local play_music = minetest.setting_getbool("music") or false | local play_music = minetest.setting_getbool("music") or false | ||||||
| @@ -271,8 +271,8 @@ local ambienceList = { | |||||||
| 	splashing_water=splashing_water, | 	splashing_water=splashing_water, | ||||||
| 	flowing_water=flowing_water, | 	flowing_water=flowing_water, | ||||||
| 	flowing_water2=flowing_water2, | 	flowing_water2=flowing_water2, | ||||||
| 	lava=lava, | --	lava=lava, | ||||||
| 	lava2=lava2, | --	lava2=lava2, | ||||||
| 	music=music, | 	music=music, | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -460,13 +460,13 @@ local get_ambience = function(player) | |||||||
| --	end | --	end | ||||||
| 	--minetest.chat_send_all("not flying!!!!")	 | 	--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 nodes_in_range(pos, 7, "default:lava_flowing")>5 or nodes_in_range(pos, 7, "default:lava_source")>5 then | ||||||
| 		if music then | --		if music then | ||||||
| 			return {lava=lava, lava2=lava2, music=music}		 | --			return {lava=lava, lava2=lava2, music=music}		 | ||||||
| 		else | --		else | ||||||
| 			return {lava=lava} | --			return {lava=lava} | ||||||
| 		end | --		end | ||||||
| 	end | --	end | ||||||
| 	if nodes_in_range(pos, 6, "default:water_flowing")>45 then | 	if nodes_in_range(pos, 6, "default:water_flowing")>45 then | ||||||
| 		if music then | 		if music then | ||||||
| 			return {flowing_water=flowing_water, flowing_water2=flowing_water2, music=music} | 			return {flowing_water=flowing_water, flowing_water2=flowing_water2, music=music} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user