Skip to content

[Bug]: Sound is played for other players when opening an inventory #156

Description

@MrSquidson

Bug Description

In multiplayer, sound is played for other players when opening cupboards and shelves, however sound is never played for the player/client that opens the inventory.

Could potentially be fixed while addressing #145

How to Reproduce?

Setup:

  • Ensure that your volume for "Player" is set so that player interactions are audible.
  • Ensure that you have another player (or a carpet entity) to test this with
  • (Suggestion) Turn on subtitle for both players so that you can see the difference between clients.

Reproduction Steps:

  1. Open a multiplayer world (Tested using Essential)
  2. Place down cupboard, shelf or other inventory
  3. Player 1 enters/accesses the inventory while player 2 is in the audible range of a chest.

Expected Behavior

Expected behavior:
Sound is either played or not played for both clients, Sound should be emitted from the block.

Actual behavior:
Sound is only played for the player that isn't "entering"/accessing the inventory, Sound is emitted from the player entity.

Version

4.0.3

Mod Loader Version

1.21.1

Mod Loader

Fabric

Logs or additional context

No response

Code of Conduct

  • I have searched the issue tracker and confirmed that the issue has not been reported
  • I have checked the FAQ (if one is present) and my issue is not listed
  • I have verified that I am using the latest version of the mod
  • I have verified that I have installed all the required dependencies for the mod
  • I have verified that I do not have Optifine installed. We will close issues if we detect Optifine is in your pack. We cannot fix Optifine issues. Please do not report issues with Optifine present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions