Skip to content

Conversation

@ghzdude
Copy link
Contributor

@ghzdude ghzdude commented Nov 17, 2025

Previously, getSyncHandler() in getOrCreateSyncHandler() was called with just the name part of the map key, meaning it will never find the right sync handler and always create a new one.

Otherwise if you do pass in the map key to name and it can't find the sync handler, you end up syncing the new sync handler with the int id attached twice, giving it the wrong map key.

also uses the class cast() method to remove those unchecked suppressions

use class cast method instead of raw casting
@brachy84 brachy84 merged commit 14759d1 into CleanroomMC:master Nov 17, 2025
brachy84 pushed a commit to brachy84/ModularUI2-GTNH that referenced this pull request Nov 27, 2025
…MC#174)

use class cast method instead of raw casting

(cherry picked from commit 14759d1)
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.

2 participants