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

send offline uuid to client and server if ip-forward is disabled #3656

Closed
wants to merge 2 commits into from

Conversation

Outfluencer
Copy link
Collaborator

old pr #3650

i think this pr is a much nicer solution

@Outfluencer
Copy link
Collaborator Author

btw how do i make my commits signed in intellij?

@Janmm14
Copy link
Contributor

Janmm14 commented Apr 16, 2024

btw how do i make my commits signed in intellij?

Settings -> Version Control -> Git
or search for "GPG" in Settings

@md-5
Copy link
Member

md-5 commented Apr 17, 2024

This looks extremely nice. Tested?

@md-5 md-5 self-requested a review April 17, 2024 09:35
@md-5 md-5 self-assigned this Apr 17, 2024
@Outfluencer
Copy link
Collaborator Author

Yes worked fine for me

@@ -62,7 +62,7 @@ public void rewriteServerbound(ByteBuf packet, int oldId, int newId)
int packetId = DefinedPacket.readVarInt( packet );
int packetIdLength = packet.readerIndex() - readerIndex;

if ( packetId == spectateId && !BungeeCord.getInstance().getConfig().isIpForward() )
if ( packetId == spectateId )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this change need to be made to all the rewriters?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it does i forgot and did not notice because it makes only a difference if bungeecord is reloaded and ipforward is changed

@md-5
Copy link
Member

md-5 commented Apr 17, 2024

Thanks!

@md-5 md-5 closed this Apr 17, 2024
thxrben pushed a commit to thxrben/BungeeCord that referenced this pull request Jun 16, 2024
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

Successfully merging this pull request may close these issues.

3 participants