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

hackEarlySend is incompatible with Cardboard #5

Open
jakobkmar opened this issue May 25, 2021 · 6 comments
Open

hackEarlySend is incompatible with Cardboard #5

jakobkmar opened this issue May 25, 2021 · 6 comments

Comments

@jakobkmar
Copy link

jakobkmar commented May 25, 2021

Enabling hackEarlySend - because I am using LuckPerms - causes all players to connect as "offline" players.

(When hackEarlySend is set to false (only possible without LuckPerms) everyone is in normal online mode as usual, this is why I think that enabling hackEarlySend is the cause.)

Am I overseeing something here, or is this a bug?

The config:

hackOnlineMode = true
hackEarlySend = true
secret = "secret"
@jakobkmar
Copy link
Author

jakobkmar commented May 26, 2021

Update: The hackEarlySend feature seems to be incompatible with Cardboard.

@jakobkmar jakobkmar changed the title [Help] hackEarlySend causes players to be in offline mode hackEarlySend is incompatible with Cardboard May 26, 2021
@jakobkmar
Copy link
Author

jakobkmar commented May 26, 2021

For a fix, you might have a look at these Mixins from Cardboard:

ServerLoginNetworkHandler (the class where the mixin for hackEarlySend is applied) is also modified by cardboard:
https://github.com/CardboardPowered/cardboard/blob/master/src/main/java/org/cardboardpowered/mixin/network/MixinServerLoginNetworkHandler.java

and possibly any of these other network mixins are related aswell:
https://github.com/CardboardPowered/cardboard/tree/master/src/main/java/org/cardboardpowered/mixin/network

@jakobkmar
Copy link
Author

jakobkmar commented May 26, 2021

Even more specific: I think this mixin causes the issue.

Is it possible to fix this incompatibility? (Or is this maybe an issue which has to be fixed by Cardboard?)

@james58899
Copy link
Member

james58899 commented May 26, 2021

Even more specific: I think this mixin causes the issue.

Is it possible to fix this incompatibility? (Or is this maybe an issue which has to be fixed by Cardboard?)

Yes it need fixed by Cardboard, it skip FabricProxy auth process.
I think this mixin is not necessary, maybe Cardboard can add config to allow disable it.

@jakobkmar
Copy link
Author

cardboard issue:
CardboardPowered/cardboard#209

@jakobkmar
Copy link
Author

Mh just a guess: Couldn't you remove this cancel call, and then I will create a PR to Cardboard to execute cardboards logic AFTER the logic of FabricProxy-Lite (only possible if FabricProxy-Lite does not cancel immediately)?

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