Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tolland opened this issue May 29, 2024 · 2 comments

Comments

@tolland
Copy link

tolland commented May 29, 2024

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:

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

No branches or pull requests

2 participants