Skip to content

Conversation

@Zorbatron
Copy link
Member

What

Fixes ClassNotFound exceptions due to LangKey#get being inside a DynamicKey string supplier. DynamicKey's constructor gets the string from the supplier to null check, but this ends up getting the result of the LangKey which has ClientScreenHandler.getTicks() in the get() method, which is annotated with SideOnly(CLIENT).

Implementation Details

Remove usage of dynamic keys in the ender cover code and change BaseFilterContainer#getFilterName to getFilterKey so a lang key can be returned directely.

Outcome

You can use covers on servers.

Additional Information

This affected conveyor and robot arm covers too

@Zorbatron Zorbatron requested a review from a team as a code owner June 19, 2025 04:06
@Zorbatron Zorbatron added the type: bug Something isn't working label Jun 19, 2025
@ALongStringOfNumbers
Copy link
Contributor

On this branch, I cannot runClient or runServer at all, they both crash with another ClassNotFound for IModuleManager

@Zorbatron
Copy link
Member Author

Zorbatron commented Jun 30, 2025

Where in loading does it crash, and you provide the entire stack trace? Client and server both work for me.

@Zorbatron Zorbatron merged commit 62f148a into master Aug 7, 2025
4 of 5 checks passed
@Zorbatron Zorbatron deleted the zb/ender-cover-server-fix branch August 7, 2025 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants