Skip to content

Mixin conflict with jline4mcdsrv – DedicatedServer$ConsoleHandlerThreadMixin fails to apply #89

@TheKidThatCodes

Description

@TheKidThatCodes

Describe the issue

Worldthreader fails to launch due to a mixin conflict when used alongside the jline4mcdsrv mod.

Both mods inject into the same method MinecraftDedicatedServer$1::run() causing an InvalidInjectionException.

Crash Report

Mixin apply for mod worldthreader failed:

InvalidInjectionException: @At("INVOKE") on net/minecraft/server/dedicated/MinecraftDedicatedServer$1::getNull with priority 1000 cannot inject into net/minecraft/server/dedicated/MinecraftDedicatedServer$1::run()V
merged by org.chrisoft.jline4mcdsrv.mixin.DServerConsoleThreadInject with priority 1000

This causes the server to crash during launch:

java.lang.RuntimeException: Mixin transformation of net.minecraft.server.dedicated.MinecraftDedicatedServer$1 failed
Caused by: MixinApplyError: Mixin [...] FAILED during APPLY

Steps to Reproduce

  1. Install worldthreader
  2. Install jline4mcdsrv (https://github.com/chirs241097/jline4mcdsrv)
  3. Launch server
  4. Server crashes with mixin conflict

Environment

  • Minecraft: 1.21.6
  • Fabric Loader: 0.16.14

Suggested Fix by ChatGPT

Consider reducing the mixin injection priority for DedicatedServer$ConsoleHandlerThreadMixin, or changing the injection point to avoid overlap with DServerConsoleThreadInject. Alternatively, a compatibility mixin for environments with jline4mcdsrv could be added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions