Skip to content

Fix: opening the horse's inventory plays sound effects twice#1336

Merged
mattsumi merged 1 commit intosmartcmd:mainfrom
Adem-Kurt:patch-2
Mar 19, 2026
Merged

Fix: opening the horse's inventory plays sound effects twice#1336
mattsumi merged 1 commit intosmartcmd:mainfrom
Adem-Kurt:patch-2

Conversation

@Adem-Kurt
Copy link
Contributor

Description

Before this update, pressing the inventory key while riding a horse, mule, or donkey would trigger the inventory sound effect twice.

Changes

Previous Behavior

Opening Horse inventory plays sound effect twice.

Root Cause

Previously, a sound effect was triggered when the player pressed the inventory key. Then, if the player was riding an animal, the open horse inventory logic would also trigger and play the same sound effect again.(minecraft.cpp line 3759 and LocalPlayer.cpp line 630)

New Behavior

Opening the horse inventory played the sound effect once.

Fix Implementation

Updated Minecraft.cpp to include a condition that checks whether the player is riding an animal before playing the sound effect.

AI Use Disclosure

AI was used as a search tool and to help format this PR message.

Related Issues

@mattsumi
Copy link
Collaborator

Thank you for contributing!

@mattsumi mattsumi merged commit 71d6fba into smartcmd:main Mar 19, 2026
1 check passed
@loinmin
Copy link

loinmin commented Mar 19, 2026

Yay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants