mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-06-06 05:33:29 +02:00
Fix: opening the horse's inventory plays sound effects twice (#1336)
This commit is contained in:
@@ -3746,7 +3746,10 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures)
|
|||||||
if((player->ullButtonsPressed&(1LL<<MINECRAFT_ACTION_INVENTORY)) && gameMode->isInputAllowed(MINECRAFT_ACTION_INVENTORY))
|
if((player->ullButtonsPressed&(1LL<<MINECRAFT_ACTION_INVENTORY)) && gameMode->isInputAllowed(MINECRAFT_ACTION_INVENTORY))
|
||||||
{
|
{
|
||||||
shared_ptr<MultiplayerLocalPlayer> player = Minecraft::GetInstance()->player;
|
shared_ptr<MultiplayerLocalPlayer> player = Minecraft::GetInstance()->player;
|
||||||
ui.PlayUISFX(eSFX_Press);
|
if (!player->isRiding())
|
||||||
|
{
|
||||||
|
ui.PlayUISFX(eSFX_Press);
|
||||||
|
}
|
||||||
|
|
||||||
if(gameMode->isServerControlledInventory())
|
if(gameMode->isServerControlledInventory())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user