mirror of
https://codeberg.org/tenplus1/ambience.git
synced 2024-12-24 01:30:30 +01:00
Added mod check to break
This commit is contained in:
parent
6b5283e8fc
commit
c30be176ab
2
init.lua
2
init.lua
@ -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: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)
|
||||
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
|
||||
|
||||
-- is fire redo mod active?
|
||||
|
Loading…
Reference in New Issue
Block a user