-
Notifications
You must be signed in to change notification settings - Fork 92
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
Legacy support for old packet structures #60
base: master
Are you sure you want to change the base?
Conversation
@dmulloy2, waiting for your point on whether or not this PR should be continued. |
Another thing to discuss is what to do with those methods which don't have equivalents on older versions such as |
I like it. As for the methods without equivalents it should throw an UnsupportedOperationException |
…erSpawnEntityLiving
…erSpawnEntityLiving
@dmulloy2, it seems that |
Also will extend packets as in NMS so that |
@JarvisCraft sorry for the late reply on this, it's been a busy year. What's the status of this PR? I looked over the diff and it looks good, but it is still a draft PR. |
@dmulloy2, hi there |
948f5b4
to
974688e
Compare
387d7d9
to
20565b5
Compare
I have temporarily configured the branch of my fork to deploy artifacts to GH Package Registry so that it is possible to depend on this patch while it is not implemented. |
bcb6a8d
to
acfe5c2
Compare
acfe5c2
to
330d078
Compare
@dmulloy2 could you please allow me to temporarily deploy current legacy-support builds under my coordinates (i.e. At current it gets deployed to GitHub Package Registry for the same purpose but it requires user to provide access credentials (even though the repo is public) which seems to be an issue: |
@JarvisCraft yeah you're absolutely free to deploy your own version under your own coordinates |
330d078
to
338cad0
Compare
Thanks! Now it is available via Sonatype OSSRH. Once the job on this PR is ready (once it will happen, haha) I will also open a PR to enable deployment under your coordinates to Sonatye OSSRH and possibly Maven Central. |
# Conflicts: # .github/workflows/deploy.yml # PacketWrapper/pom.xml
Also you should be good to go back to using my maven repo |
@JarvisCraft any update on this? |
fix: do not write both shorts and integers
build: bump ProtocolLib version to 4.7.0
Feature proposed in #59 whose main point is to allow PacketWrapper to be used on lower versions in which structures of packet objects vary from these now.
This is reached by adding conditional statements which check minor version of minecraft server (this is stored as a static constant of
AbstractPacket
as anint
primitive so the overhead of such approach seems to be close to zero).Another enhancement being part of this PR is storing
ProtocolManager
instance fromProtocolLibrary.getProtocolManager()
as a static constant ofAbstractPacket
which both guarantees no mismatches and performs a sort of microoptimization.