1
0
mirror of https://codeberg.org/tenplus1/ambience.git synced 2025-10-29 15:05:21 +01:00

fix beach sound check

This commit is contained in:
tenplus1
2025-10-26 11:06:29 +00:00
parent 9c4a1f1e28
commit f971ba562f

View File

@@ -162,12 +162,14 @@ ambience.add_set("beach", {
{name = "beach_2", length = 6}
},
nodes = {"group:water"},
sound_check = function(def)
local c = (def.totals["default:water_source"] or 0)
+ (def.totals["mcl_core:water_source"] or 0)
if def.pos.y < 6 and def.pos.y > 0 and c > 150 then
if def.pos.y < 6 and def.pos.y > 0 and c > 130 then
return "beach"
end
end