Skip to content

Conversation

@alexiokay
Copy link

@alexiokay alexiokay commented Sep 15, 2025

Summary

This PR fixes critical compatibility issues that cause server crashes when Immersive Portals is used
alongside SecurityCraft and resolves build failures due to incorrect Stitch library configuration.

Changes

  1. Fixed SecurityCraft mixin conflict: Replaced @Overwrite with @Inject annotation in
    MixinChunkMap_C.java for the onChunkReadyToSend method
  2. Added Fabric Maven repository: Required for resolving net.fabricmc dependencies (wasn't found in maven while building)
  3. Fixed Stitch dependency: Corrected from maven.modrinth:stitch:4.0.1 to
    net.fabricmc:stitch:0.6.2

Problem Solved

  • Server crash fix: Resolves MixinApplyError when SecurityCraft tries to inject into
    onChunkReadyToSend method
  • Build failure fix: Resolves "Could not find maven.modrinth:stitch:4.0.1" error during compilation

Testing

  • ✅ Build compiles successfully with ./gradlew compileJava
  • ✅ Server starts without crashes when both Immersive Portals and SecurityCraft are installed
  • ✅ Maintains existing Immersive Portals chunk tracking functionality

Error Details

The original error occurred because SecurityCraft's ChunkMapMixin couldn't inject into
onChunkReadyToSend method due to Immersive Portals using @Overwrite with the same priority (1100).
This PR changes the approach to use @Inject with cancellation, allowing other mods to also hook into
this method without conflicts.

Related Issues

Fixes compatibility with SecurityCraft mod and resolves build dependency issues.

- Replace @overwrite with @Inject for onChunkReadyToSend method to prevent mixin conflicts with SecurityCraft
- Add Fabric Maven repository for net.fabricmc dependencies
- Fix Stitch library dependency (changed from maven.modrinth:stitch:4.0.1 to net.fabricmc:stitch:0.6.2)

These changes resolve server crash when SecurityCraft is installed alongside Immersive Portals.
Fixes mixin injection conflict that prevented SecurityCraft from applying its camera-related mixins.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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