Skip to content

Conversation

@Jonathing
Copy link

@Jonathing Jonathing commented Feb 3, 2025

Name entails. ClientEvents.setup() calls initShields() which registers item property functions for each of the shields. Registering item property functions without using event.enqueueWork() has historically caused semi-frequent crashes with other mods that also add item property functions, because the item property functions map cannot be concurrently modified.

Also, there is no need to use DistExecutor here. The client setup event is only ever fired for the client, and the extra redundancy here will hurt maintainability down the line.

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.

1 participant