Skip to content

MixinApplyError: Cannot find method m_9156_ in ServerPlayer on Forge 1.20.1 with SLIB #467

@KendoTarakate

Description

@KendoTarakate

Hi, I'm developing a addon of Plasmovoice on forge but I have a big problem. It's happen when I tried to run Plasmovoice 2.1.5 on my addon and I found error that

Mixin [slib.mixins.json:MixinServerPlayer] from phase [DEFAULT] in config [slib.mixins.json] FAILED during APPLY
Critical injection failure: @Inject annotation on updateOptions could not find any targets matching 'Lnet/minecraft/server/level/ServerPlayer;m_9156_(Lnet/minecraft/network/protocol/game/ServerboundClientInformationPacket;)V'

It appears that slib is attempting to inject into the method m_9156_, which doesn't seem to exist in the mapped version I'm using.
My environment:
Minecraft: 1.20.1

Forge: 47.4.0

Java: 17

Mappings: official:1.20.1

slib version: 2.1.5 from https://repo.plasmoverse.com/releases

My build.gradle (relevant parts):

minecraft {
    mappings channel: 'official', version: '1.20.1'
}

dependencies {
    minecraft "net.minecraftforge:forge:1.20.1-47.4.0"
    implementation 'su.plo.voice.api:server:2.1.5'
    implementation 'su.plo.voice.api:client:2.1.5'
}

How do I fix this problem?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions