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

This commit is contained in:
Adem Kurt 2026-03-18 17:58:22 +03:00 committed by GitHub
parent a94ee1ca22
commit f773f6a79e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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())
{