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

Fix an issue related to 1.8.8 connections. #741

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

PrinceBunBun981
Copy link
Contributor

@PrinceBunBun981 PrinceBunBun981 commented Nov 9, 2023

Fixes: #739

Could possibly change the 0 to -1, but for simplicity sake, it's pretty much how it was before using https://github.com/SpigotMC/BungeeCord/blob/master/protocol/src/main/java/net/md_5/bungee/protocol/Either.java

@PrinceBunBun981
Copy link
Contributor Author

image

Tested using same proxy, server, and client as #739:
Proxy: PaperMC/Waterfall@9ac9f37 - Latest b552
Server: Paper 1.8.8 b445 https://api.papermc.io/v2/projects/paper/versions/1.8.8/builds/445/downloads/paper-1.8.8-445.jar
Client: Default 1.8.8

@andreasdc
Copy link

andreasdc commented Nov 9, 2023

It looks to be a nice work, I would test it, but building this is pain in the...
But wait did you test it with something on the tab? When I checked it with the bugged version disabling tablists would allow the client anyway.

Copy link

@MacTh3Mac MacTh3Mac left a comment

Choose a reason for hiding this comment

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

Successfully compiled locally on MacOS
AdoptOpenJDK-16.0.1+9

Proxy- Waterfall Build 522.
Backend - 1.12.2, 1.16.5, 1.18.2, 1.20.1, 1.20.2
Tested with clients 1.12.2 Vanilla, 1.12.2 Optifine, 1.20.1 Vanilla, 1.20.2 Vanilla

All load, display server specific and global tab lists and allow gameplay without error

1 12 2
1 20 2

@andreasdc
Copy link

andreasdc commented Nov 9, 2023

I'm trying to setup this since 2/3 hours, getting different errors, now I'm stuck with:
Could not determine the dependencies of task :BungeeTabListPlus:shadowJar. Could not resolve all dependencies for configuration :BungeeTabListPlus:runtimeClasspat'. Could not find de.codecrafter47.taboverlay:taboverlaycommon-config:1.0-SNAPSHOT. Searched in the following locations: - https://repo.maven.apache.org/maven2/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/maven-metadata.xml - https://repo.maven.apache.org/maven2/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/taboverlaycommon-config-1.0-SNAPSHOT.pom - https://nexus.codecrafter47.dyndns.eu/content/repositories/public/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/maven-metadata.xml - https://nexus.codecrafter47.dyndns.eu/content/repositories/public/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/taboverlaycommon-config-1.0-SNAPSHOT.pom - https://repo.codemc.org/repository/maven-public/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/maven-metadata.xml - https://repo.codemc.org/repository/maven-public/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/taboverlaycommon-config-1.0-SNAPSHOT.pom - https://repo.md-5.net/content/repositories/snapshots/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/maven-metadata.xml - https://repo.md-5.net/content/repositories/snapshots/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/taboverlaycommon-config-1.0-SNAPSHOT.pom - https://hub.spigotmc.org/nexus/content/repositories/snapshots/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/maven-metadata.xml - https://hub.spigotmc.org/nexus/content/repositories/snapshots/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/taboverlaycommon-config-1.0-SNAPSHOT.pom - https://papermc.io/repo/repository/maven-snapshots/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/maven-metadata.xml - https://papermc.io/repo/repository/maven-snapshots/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/taboverlaycommon-config-1.0-SNAPSHOT.pom - https://repo.spongepowered.org/maven/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/maven-metadata.xml - https://repo.spongepowered.org/maven/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/taboverlaycommon-config-1.0-SNAPSHOT.pom - https://jitpack.io/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/maven-metadata.xml - https://jitpack.io/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/taboverlaycommon-config-1.0-SNAPSHOT.pom - https://oss.sonatype.org/content/repositories/snapshots/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/maven-metadata.xml - https://oss.sonatype.org/content/repositories/snapshots/de/codecrafter47/taboverlay/taboverlaycommon-config/1.0-SNAPSHOT/taboverlaycommon-config-1.0-SNAPSHOT.pom Required by: project :BungeeTabListPlus > project :bungee-plugin
Can you share your JAR by any chance?

@andreasdc
Copy link

I confirm that this patch fixes the problem. Great job man!

@electronicboy
Copy link

The reality is that most components end up with formatting stuff inside of them, but, I would probably suggest using -1, just for the sake of consistency, unless there is a reason they opted for 0 in the past (which, I doubt, i'd imagine it's pretty much just a case of it having literally 0 impact for the most part)

@PrinceBunBun981
Copy link
Contributor Author

The reality is that most components end up with formatting stuff inside of them, but, I would probably suggest using -1, just for the sake of consistency, unless there is a reason they opted for 0 in the past (which, I doubt, i'd imagine it's pretty much just a case of it having literally 0 impact for the most part)

Building it with -1 instead of 0 works fine as well, I had just opted to use the same logic CodeCrafter had prior to the changes. If anything, he can request changes to the PR or just change it himself if he wants -1 to be used instead.

@andreasdc
Copy link

The reality is that most components end up with formatting stuff inside of them, but, I would probably suggest using -1, just for the sake of consistency, unless there is a reason they opted for 0 in the past (which, I doubt, i'd imagine it's pretty much just a case of it having literally 0 impact for the most part)

Building it with -1 instead of 0 works fine as well, I had just opted to use the same logic CodeCrafter had prior to the changes. If anything, he can request changes to the PR or just change it himself if he wants -1 to be used instead.

Is there any difference in the code behaviour?

@CodeCrafter47 CodeCrafter47 merged commit 6b52263 into CodeCrafter47:dev Nov 13, 2023
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.

BTLP prevents 1.8.8 clients joining 1.8.8 servers.
5 participants