From 03443e41d9ee2fc80b23df6a0516fbe2573fe9b3 Mon Sep 17 00:00:00 2001 From: fwhcat Date: Fri, 21 Jun 2019 09:30:41 +0000 Subject: [PATCH] Fix options being passed with {} for playing digicode sound --- nodeboxes.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodeboxes.lua b/nodeboxes.lua index 18866a2..e71447d 100644 --- a/nodeboxes.lua +++ b/nodeboxes.lua @@ -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)