Skip to content

Support for projects that use mojmap() but that rely on mods that use conflicting method names #74

Description

@tolland

This is likely a support or documentation request, but I was hoping I could get some pointers on how to proceed.

I am currently looking at an issue with baritones' support for building litematica schematics with multiple subregions, hence I am working from a baritone branch into which I have bumped some versions and I have dropped litematica and malilib jars in the fabric/run/client/mods directory.

With this branch I can build baritone jar and use that jar in a fabric minecraft (with litematica/malilib). however if I try to run the branch from intelllij, or use the gradle :fabric:runClient task the client crashes with a stackoverflow relating to a conflicting method name between mojmap and malilib. This obviously makes further development on that a big PITA ;-)

The error manifests like so:

Caused by: java.lang.StackOverflowError
        at com.mojang.blaze3d.platform.InputConstants.isKeyDown(InputConstants.java:473) ~[minecraft-1.20.4-fabric-merged+fixed-mojmap+intermediary.jar:?]
        at net.minecraft.client.gui.screens.Screen.hasShiftDown(Screen.java:377) ~[minecraft-1.20.4-fabric-merged+fixed-mojmap+intermediary.jar:?]
        at fi.dy.masa.malilib.gui.GuiBase.isShiftDown(GuiBase.java:675) ~[malilib-0.18.0-64b5720b4b825f21.jar:?]
        at fi.dy.masa.malilib.gui.GuiTextFieldGeneric.setCursorPosition(GuiTextFieldGeneric.java:93) ~[malilib-0.18.0-64b5720b4b825f21.jar:?]
        at net.minecraft.client.gui.components.EditBox.moveCursorTo(EditBox.java:256) ~[minecraft-1.20.4-fabric-merged+fixed-mojmap+intermediary.jar:?]

The suggestion from the malilib discord is that I should remap the methods from baritone, which is using unimined gradle plugin. However for the life of me, I can't work out how to do that from the various issues I have looked at, or the documentation.

I guess that I am looking to implement this:
2024-05-29_16-55

Related issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions