Добавить максимальную дистанцию проигрывания звуков дверей от позиции установки

This commit is contained in:
Aleksandr Avdeev 2024-11-25 11:32:19 +03:00
parent a6bb728c5c
commit d3aab548e5

View File

@ -53,8 +53,9 @@ for i in ipairs(Porta_list) do
minetest.sound_play("summer_porta_ch", {
to_player = "",
gain = 0.1,
})
pos = pos,
max_hear_distance = 16,
})
end,
})
@ -90,7 +91,9 @@ minetest.register_node("summer:porta_"..colour.."_ch", {
minetest.sound_play("summer_porta_op", {
to_player = "",
gain = 0.1,
})
pos = pos,
max_hear_distance = 16,
})
end,
})