Skip to content

Fix Collection Case Action Sounds Playing for Other Players - Fix #143#147

Merged
Awakened-Redstone merged 3 commits into
ModFest:26.1from
Superkat32:collection-case-sounds-fix
Jul 17, 2026
Merged

Fix Collection Case Action Sounds Playing for Other Players - Fix #143#147
Awakened-Redstone merged 3 commits into
ModFest:26.1from
Superkat32:collection-case-sounds-fix

Conversation

@Superkat32

@Superkat32 Superkat32 commented Jul 15, 2026

Copy link
Copy Markdown

Simple fix for #143, where sounds from the Collection Case (adding/removing items, scrolling) would be played for nearby players. Nothing is needed for making scrolling on the client, as Collection Case actions are already client-sided (I initially assumed they weren't when Tomate and I discovered this bug, which is why it was mentioned)

I also tried to figure out #132, but it's a much more convoluted problem than you'd think. My attempted solution was "if collectable is selected and (collected or player is in creative)", bolden.

However, The type.isCreative() method in the tooltip method is not checking whether the player is in creative mode, but rather if the item is in the creative mode search screen. I don't think there is anywhere to access the information we need without mixins or a separate class to call the client Minecraft instance, so I left it.

With that, I initially fixed a bug where players can scroll through the Collection Case even if there's nothing to scroll through, but because of #132, I've opted to un-fix that for now.

Comment thread src/main/java/dev/hephaestus/glowcase/item/CollectionCaseItem.java
@Awakened-Redstone Awakened-Redstone linked an issue Jul 17, 2026 that may be closed by this pull request
@Awakened-Redstone
Awakened-Redstone merged commit 31e7585 into ModFest:26.1 Jul 17, 2026
1 check passed
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.

Collection case plays sounds for all players

2 participants