Skip to content

Conversation

@ALongStringOfNumbers
Copy link
Contributor

What

Fixes crashes when loading the server (via runServer)

However, none of the MUI2 GUIs currently are displaying. Checking Input Bus, Crate, and Hatch

Outcome

Fix server crashes

@ALongStringOfNumbers ALongStringOfNumbers added the type: bug Something isn't working label Feb 22, 2025
@ghzdude
Copy link
Contributor

ghzdude commented Feb 22, 2025

okay, i've determined why ModularPanel's class cannot be found on the server.

our mixin into ModularPanel creates this code:

    @OverrideOnly
    public boolean onMousePressed(int mouseButton) {
        return this.doSafeBool(this::lambda$onMousePressed$3);
    }

    @Overwrite
    @MixinMerged(
        mixin = "gregtech.mixins.mui2.ModularPanelMixin",
        priority = 1000,
        sessionId = "2992ad59-654b-4216-a0d1-f2e33b7582d4"
    )
    private boolean lambda$onMousePressed$3(int mouseButton) {
        // ...
    }

which works fine for the client side, but NOT for the server side for some reason

I suspect the lambda overwrite is to blame, but it's been reworked in #2730 so it should already be fixed there

@ALongStringOfNumbers
Copy link
Contributor Author

superseded by #2730

@ALongStringOfNumbers ALongStringOfNumbers deleted the alson-fix-server branch May 4, 2025 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants