forked from nalc/global_exchange
Soften ATM sound and limit hear range to nearby
This commit is contained in:
parent
1a71ba41b6
commit
84c1e6c05f
2
atm.lua
2
atm.lua
|
@ -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,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user