Skip to content

#22 Load only required fabric API modules - #183

Merged
tpwalke2 merged 3 commits into
mainfrom
feature/tpwalke2/22-fabric-modules
Aug 10, 2026
Merged

#22 Load only required fabric API modules#183
tpwalke2 merged 3 commits into
mainfrom
feature/tpwalke2/22-fabric-modules

Conversation

@tpwalke2

@tpwalke2 tpwalke2 commented Aug 9, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR narrows the project’s Fabric API dependency surface area by switching from the full fabric-api bundle to only the Fabric API lifecycle events module that the mod actually imports, reducing build/runtime dependency footprint without changing gameplay behavior.

Changes:

  • Replaced the Gradle dependency on net.fabricmc.fabric-api:fabric-api with fabric-lifecycle-events-v1 via Loom’s fabricApi.module(...) helper.
  • Updated fabric.mod.json to depend on fabric-lifecycle-events-v1 instead of fabric-api.
  • Bumped mod_version to 26.2-0.18.0.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
src/main/resources/fabric.mod.json Updates runtime mod dependency to the specific Fabric API module used (fabric-lifecycle-events-v1).
plans/fabric-api-module-split-plan.md Adds a design/verification plan documenting the rationale, approach, and validation steps.
gradle.properties Bumps the mod version for the release containing the dependency change.
build.gradle Switches build-time dependency from full Fabric API to the lifecycle-events module only.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tpwalke2 tpwalke2 added this to the 5Jej7 milestone Aug 9, 2026
@tpwalke2
tpwalke2 merged commit 3f36fa4 into main Aug 10, 2026
2 checks passed
@tpwalke2
tpwalke2 deleted the feature/tpwalke2/22-fabric-modules branch August 10, 2026 10:04
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