diff options
| author | Adem Kurt <138557116+Adem-Kurt@users.noreply.github.com> | 2026-03-19 03:11:07 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-18 20:11:07 -0400 |
| commit | 71d6fba4b9a8d7f2bbe3df6ef70fe1706f8c5a53 (patch) | |
| tree | f085c54d787a5da3a51d2a6a9d7561981788de56 | |
| parent | baa9fc058d405854de7fea0f6a47b990f04ab27c (diff) | |
Fix: opening the horse's inventory plays sound effects twice (#1336)
| -rw-r--r-- | Minecraft.Client/Minecraft.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Minecraft.Client/Minecraft.cpp b/Minecraft.Client/Minecraft.cpp index 11fd81a0..1ba432fd 100644 --- a/Minecraft.Client/Minecraft.cpp +++ b/Minecraft.Client/Minecraft.cpp @@ -3746,7 +3746,10 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures) if((player->ullButtonsPressed&(1LL<<MINECRAFT_ACTION_INVENTORY)) && gameMode->isInputAllowed(MINECRAFT_ACTION_INVENTORY)) { shared_ptr<MultiplayerLocalPlayer> player = Minecraft::GetInstance()->player; - ui.PlayUISFX(eSFX_Press); + if (!player->isRiding()) + { + ui.PlayUISFX(eSFX_Press); + } if(gameMode->isServerControlledInventory()) { |
