Skip to content

Ignore client enum extensions on dedicated server#426

Closed
skirazavr wants to merge 2 commits into
neoforged:mainfrom
skirazavr:fix-client-enum-extension
Closed

Ignore client enum extensions on dedicated server#426
skirazavr wants to merge 2 commits into
neoforged:mainfrom
skirazavr:fix-client-enum-extension

Conversation

@skirazavr

Copy link
Copy Markdown

Ignore client-only enum extensions on dedicated servers.

Currently RuntimeEnumExtender attempts to load enum prototypes
for net/minecraft/client/* classes on dedicated servers.

This causes ClassNotFoundException for client-only extensible enums
such as net.minecraft.client.gui.Hud$HeartType.

The change filters client-side enum extensions when running on
Dist.DEDICATED_SERVER.

@neoforged-pr-publishing

Copy link
Copy Markdown
  • Publish PR to GitHub Packages

@skirazavr skirazavr closed this Jun 9, 2026
@skirazavr

Copy link
Copy Markdown
Author

No need to add this cause works fine with dividing EnumParams with common and client sides

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