Skip to content

Inconsistent mixin behavior compared to Fabric #1623

@Awakened-Redstone

Description

@Awakened-Redstone

Mod Name

AutoWhitelist

Mod Homepage

https://modrinth.com/mod/autowhitelist

Minecraft version

1.21.1

Describe the bug

The mixin into Jankson does not apply on Connector, unlike on Fabric

Steps to reproduce

  1. Download AutoWhitelist and it's dependencies (Forgified Fabric API, Fabric Language Kotlin)
  2. Start the dedicated server
  3. The server crashes at startup

Logs

https://mclo.gs/vkX99MO

Additional context

Running with the mixin verbose debug flag leads to the following output:

Fabric (dev):

[23:26:09] [main/INFO] (FabricLoader/Mixin) Mixing ServerConfigEntryMixin from autowhitelist.mixins.json into net.minecraft.server.ServerConfigEntry
[23:26:09] [main/WARN] (FabricLoader/Mixin) autowhitelist.mixins.json:ServerConfigEntryMixin from mod autowhitelist: Class version 65 required is higher than the class version supported by the current version of Mixin (JAVA_16 supports class version 60)
[23:26:09] [main/INFO] (FabricLoader/Mixin) Mixing compat.JanksonAccessor from autowhitelist.mixins.json into blue.endless.jankson.Jankson

Fabric (prod):

[02:28:39] [main/INFO]: Mixing ServerConfigEntryMixin from autowhitelist.mixins.json into net.minecraft.class_3330
[02:28:39] [main/WARN]: autowhitelist.mixins.json:ServerConfigEntryMixin from mod autowhitelist: Class version 65 required is higher than the class version supported by the current version of Mixin (JAVA_16 supports class version 60)
[02:28:39] [main/INFO]: Mixing compat.JanksonAccessor from autowhitelist.mixins.json into blue.endless.jankson.Jankson

Connector

[07Jan2025 20:22:22.944] [main/INFO] [mixin/]: Mixing ServerConfigEntryMixin from autowhitelist.mixins.json into net.minecraft.server.players.StoredUserEntry
[07Jan2025 20:22:22.944] [main/WARN] [mixin/]: autowhitelist.mixins.json:ServerConfigEntryMixin from mod autowhitelist: Class version 65 required is higher than the class version supported by the current version of Mixin (JAVA_16 supports class version 60)
[07Jan2025 20:22:22.976] [main/FATAL] [net.neoforged.fml.ModLoader/CORE]: Error during pre-loading phase: [Connector] Encountered error during early mod loading
java.lang.RuntimeException: Could not execute entrypoint stage 'server' due to errors, provided by 'autowhitelist'!
java.lang.RuntimeException: Could not execute entrypoint stage 'server' due to errors, provided by 'autowhitelist'!
... (trimmed)
Caused by: java.lang.NoSuchMethodError: 'blue.endless.jankson.Jankson blue.endless.jankson.Jankson.createJankson$autowhitelist_$md$f1b619$0(blue.endless.jankson.Jankson$Builder)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.21.xTargets Minecraft 1.21compatA mod is found to be incompatiblemixin conflictCaused by conflicting mixins

    Type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions