Skip to content

fix: mark mod as client-side only (fixes #5)#8

Open
LinkIsGrim wants to merge 1 commit into
txnimc:mainfrom
LinkIsGrim:fix/client-side-only
Open

fix: mark mod as client-side only (fixes #5)#8
LinkIsGrim wants to merge 1 commit into
txnimc:mainfrom
LinkIsGrim:fix/client-side-only

Conversation

@LinkIsGrim

Copy link
Copy Markdown

Summary

  • Move LivingEntityMixin and PlayerMixin to the "client" section in the mixin config so they aren't applied on dedicated servers (where Minecraft and LocalPlayer classes don't exist)
  • Set Fabric environment to "client" and remove the "main" entrypoint, moving config registration into onInitializeClient
  • Set Forge/NeoForge minecraft dependency side to "CLIENT"

Fixes #5

Test plan

  • Verify the mod loads correctly on a client
  • Verify the mod JAR no longer crashes a dedicated server on launch
  • Verify damage indicator particles still appear when hitting entities

🤖 Generated with Claude Code

Fixes txnimc#5. The mod crashed dedicated servers because LivingEntityMixin
imports client-only classes (Minecraft, LocalPlayer) that don't exist
on servers.

- Move mixins to client-only section in mixin config
- Set Fabric environment to "client" and remove main entrypoint
- Set Forge/NeoForge dependency side to CLIENT
- Move Fabric config registration into onInitializeClient

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@LinkIsGrim

Copy link
Copy Markdown
Author

AI slop yadda yadda feel free to close if you don't want it.

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.

Mod not labeled as Client-Sided anywhere. Crashes Dedicated Server on launch without any sign that this mod is causing it.

1 participant