mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2024-12-22 16:10:18 +01:00
Fix options being passed with {} for playing digicode sound
This commit is contained in:
parent
b7acbebd0f
commit
03443e41d9
@ -1389,10 +1389,10 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
sound_index = 4
|
||||
end
|
||||
-- play sound at context position
|
||||
minetest.sound_play(sounds[sound_index],
|
||||
context.pos,
|
||||
max_hear_distance = 40
|
||||
)
|
||||
minetest.sound_play(sounds[sound_index], {
|
||||
pos = context.pos,
|
||||
max_hear_distance = 10
|
||||
})
|
||||
context[player:get_player_name()] = nil -- we don't need it anymore
|
||||
end)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user