mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2024-12-23 00:20:17 +01:00
Digicode sound not being globally heard anymore ^^
This commit is contained in:
parent
25d73d8c8d
commit
b7acbebd0f
@ -1388,7 +1388,11 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
fields.open and fields.code ~= context.code then
|
fields.open and fields.code ~= context.code then
|
||||||
sound_index = 4
|
sound_index = 4
|
||||||
end
|
end
|
||||||
minetest.sound_play(sounds[sound_index])
|
-- play sound at context position
|
||||||
|
minetest.sound_play(sounds[sound_index],
|
||||||
|
context.pos,
|
||||||
|
max_hear_distance = 40
|
||||||
|
)
|
||||||
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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user