updated to newer 0.4.16 functions

This commit is contained in:
TenPlus1 2017-10-09 12:19:58 +01:00
parent 2151789ce0
commit f5460312e9
2 changed files with 3 additions and 2 deletions

View File

@ -12,5 +12,6 @@ Based on Immersive Sounds .36 mod by Neuromancer and optimized to run on servers
- 0.8 - Override default water sounds for 0.4.14 dev and above, add separate gain for each sound
- 0.9 - Plays music files on server or local client when found at midnight, files to be named "ambience_music.1.ogg" changing number each up to 9.
- 1.0 - Added icecrack sound when walking on snow/ice flows, also tidied code
- 1.1 - Using newer functions, Minetest 0.4.16 and above needed to run
Code license: MIT

View File

@ -1,5 +1,5 @@
--= Ambience lite by TenPlus1 (20th September 2017)
--= Ambience lite by TenPlus1
local max_frequency_all = 1000 -- larger number means more frequent sounds (100-2000)
local SOUNDVOLUME = 1.0
@ -14,7 +14,7 @@ minetest.override_item("default:river_water_flowing", { sounds = {} })
-- music settings
local music_handler = nil
local MUSICVOLUME = 1
local play_music = minetest.setting_getbool("ambience_music") ~= false
local play_music = minetest.settings:get_bool("ambience_music") ~= false
-- sound sets (gain defaults to 0.3 unless specifically set)