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

Added mod check to break

This commit is contained in:
tenplus1 2015-02-26 17:30:34 +00:00
parent 6b5283e8fc
commit c30be176ab

View File

@ -125,7 +125,7 @@ local get_ambience = function(player)
if node == "default:water_source" then num_water_source = num_water_source + 1 end if node == "default:water_source" then num_water_source = num_water_source + 1 end
if node == "default:desert_sand" or node == "default:desert_stone" then num_desert = num_desert + 1 end if node == "default:desert_sand" or node == "default:desert_stone" then num_desert = num_desert + 1 end
-- break check if total reached for specific sound (stops lag in desert areas) -- break check if total reached for specific sound (stops lag in desert areas)
if num_fire > 0 or num_lava > 5 or num_water_flowing > 45 or num_water_source > 100 or num_desert > 150 then break end if (fire.mod and fire.mod == "redo" and num_fire > 0) or num_lava > 5 or num_water_flowing > 45 or num_water_source > 100 or num_desert > 150 then break end
end end
-- is fire redo mod active? -- is fire redo mod active?