From 6138ebcf7c77c7e8d327df968cd2a2e9c9f78877 Mon Sep 17 00:00:00 2001 From: kepler155c Date: Mon, 26 Nov 2018 18:44:51 -0500 Subject: [PATCH] milo: sounds --- milo/MiloRemote.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/milo/MiloRemote.lua b/milo/MiloRemote.lua index d12a3a5..91101dc 100644 --- a/milo/MiloRemote.lua +++ b/milo/MiloRemote.lua @@ -163,9 +163,9 @@ local page = UI.Page { items = { }, } -local function playSound(sound) +local function playSound(sound, vol) if speaker then - speaker.playSound('minecraft:' .. sound) + speaker.playSound('minecraft:' .. sound, vol or 1) end end @@ -279,7 +279,7 @@ function page.grid:getDisplayValues(row) end function page:transfer(item, count, msg) - playSound('ui.button.click') + playSound('ui.button.click', .3) local response = self:sendRequest({ request = 'transfer', item = item, count = count }, msg) if response then item.count = response.current - response.count