Fix options being passed with {} for playing digicode sound

This commit is contained in:
fwhcat 2019-06-21 09:30:41 +00:00
parent b7acbebd0f
commit 03443e41d9
1 changed files with 4 additions and 4 deletions

View File

@ -1389,10 +1389,10 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
sound_index = 4 sound_index = 4
end end
-- play sound at context position -- play sound at context position
minetest.sound_play(sounds[sound_index], minetest.sound_play(sounds[sound_index], {
context.pos, pos = context.pos,
max_hear_distance = 40 max_hear_distance = 10
) })
context[player:get_player_name()] = nil -- we don't need it anymore context[player:get_player_name()] = nil -- we don't need it anymore
end) end)