1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-07-02 16:30:21 +02:00

pass def onto hearing nodes

This commit is contained in:
tenplus1
2024-10-02 15:13:37 +01:00
parent f4861ced2a
commit e4a5ead82c
2 changed files with 7 additions and 4 deletions

View File

@ -443,7 +443,9 @@ minetest.register_node("mobs:hearing_vines", {
type = "fixed", fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -0.25, 6 / 16},
},
on_sound = function(pos, def)
minetest.set_node(pos, {name = "mobs:hearing_vines_active"})
if def.loudness > 0.5 then
minetest.set_node(pos, {name = "mobs:hearing_vines_active"})
end
end
})