From 91173dbffce84a9d1e272f2114f51867434ed7a9 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Thu, 16 Apr 2015 09:22:29 +0100 Subject: [PATCH] fixed fire mod check --- depends.txt | 3 +++ init.lua | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/depends.txt b/depends.txt index 4ad96d5..b55763a 100644 --- a/depends.txt +++ b/depends.txt @@ -1 +1,4 @@ default +fire? +bakedclay? +ethereal? \ No newline at end of file diff --git a/init.lua b/init.lua index 8077de6..3acb2cd 100644 --- a/init.lua +++ b/init.lua @@ -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