From de46641cdaba54b49e8ac76a0d3430eed0913139 Mon Sep 17 00:00:00 2001 From: GuglioIsStupid Date: Fri, 6 Mar 2026 02:45:25 -0500 Subject: Reimplement miles sound artifacts, Stone Brick Stairs recipe, and craft sound (#684) * Reimplement miles sound artifacts * Fix stone brick stairs recipe * Fix craft and scroll sound --- Minecraft.Client/Common/UI/UIController.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Minecraft.Client/Common/UI/UIController.cpp') diff --git a/Minecraft.Client/Common/UI/UIController.cpp b/Minecraft.Client/Common/UI/UIController.cpp index 5375b784..95423642 100644 --- a/Minecraft.Client/Common/UI/UIController.cpp +++ b/Minecraft.Client/Common/UI/UIController.cpp @@ -2342,7 +2342,13 @@ void UIController::PlayUISFX(ESoundEffect eSound) if (time - m_lastUiSfx < 10) { return; } m_lastUiSfx = time; - Minecraft::GetInstance()->soundEngine->playUI(eSound,1.0f,1.0f); + float pitch = 1.0f; + if (eSound == eSFX_Focus) + { + pitch += (m_randomDistribution(m_randomGenerator) - 0.5f) / 10; + } + + Minecraft::GetInstance()->soundEngine->playUI(eSound,1.0f,pitch); } void UIController::DisplayGamertag(unsigned int iPad, bool show) -- cgit v1.2.3