Soften ATM sound and limit hear range to nearby

This commit is contained in:
raymoo 2016-05-20 17:48:43 -07:00
parent 1a71ba41b6
commit 84c1e6c05f

View File

@ -251,7 +251,7 @@ minetest.register_node("global_exchange:atm_bottom", {
end, end,
groups = {cracky=2, atm = 1}, groups = {cracky=2, atm = 1},
on_rightclick = function(pos, _, clicker) on_rightclick = function(pos, _, clicker)
minetest.sound_play("atm_beep", {pos = pos}) minetest.sound_play("atm_beep", {pos = pos, gain = 0.3, max_hear_distance = 5})
minetest.show_formspec(clicker:get_player_name(), atm_form, main_menu) minetest.show_formspec(clicker:get_player_name(), atm_form, main_menu)
end, end,
}) })