diff --git a/init.lua b/init.lua index 1bdb5ba..f314ae5 100644 --- a/init.lua +++ b/init.lua @@ -23,6 +23,7 @@ local reg_aliases = core.registered_aliases local log = core.log local after = core.after local clr = core.colorize +local sound_play = core.sound_play local parse_json = core.parse_json local write_json = core.write_json local chat_send = core.chat_send_player @@ -1641,9 +1642,14 @@ on_joinplayer(function(player) end) local function fields(player, _f) + if _f.quit then return end local name = player:get_player_name() local data = pdata[name] + if not _f.key_enter_field then + sound_play("craftguide_click", {to_player = name, gain = 0.2}) + end + if _f.clear then reset_data(data) diff --git a/sounds/craftguide_click.ogg b/sounds/craftguide_click.ogg new file mode 100644 index 0000000..7337b30 Binary files /dev/null and b/sounds/craftguide_click.ogg differ