1
0
mirror of https://codeberg.org/tenplus1/ambience.git synced 2024-12-24 01:30:30 +01:00

fixed fire mod check

This commit is contained in:
tenplus1 2015-04-16 09:22:29 +01:00
parent fbb57432ee
commit 91173dbffc
2 changed files with 5 additions and 3 deletions

View File

@ -1 +1,4 @@
default
fire?
bakedclay?
ethereal?

View File

@ -1,5 +1,5 @@
--= Ambience lite by TenPlus1 (6th March 2015)
--= Ambience lite by TenPlus1 (16th April 2015)
local max_frequency_all = 1000 -- larger number means more frequent sounds (100-2000)
local SOUNDVOLUME = 1
@ -132,7 +132,7 @@ local get_ambience = function(player)
end ; --print (num_fire, num_lava, num_water_flowing, num_water_source, num_desert)
-- is fire redo mod active?
if fire.mod and fire.mod == "redo" then
if fire and fire.mod and fire.mod == "redo" then
if num_fire > 8 then
return {largefire=largefire}
elseif num_fire > 0 then
@ -197,7 +197,6 @@ local play_sound = function(player, list, number)
end
end, {list, player_name})
end
end
end