fix: account for all changes in 1.21.4#6
Conversation
## [1.3.1](v1.3.0...v1.3.1) (2024-12-23) ### Bug Fixes * Account for final 1.21.4 protocol changes ([#6](#6)) ([b71aadb](b71aadb))
|
🎉 This PR is included in version 1.3.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
|
@nicholasveronico Thank you for your work on this PR! I have a few questions regarding the changes. Does the mapping change from Please let me know if I’ve misunderstood something. |
Hey @GeorgeV220, no problem! The mapping I had originally named it Edit: I see where the confusion came from. The mapping should have a min value of 21.3 instead of 19. I can adjust that. Merry Christmas! |
This PR fixes the last issues with 1.21.4. In PaperMC's dev builds, starting from build 20, their "hard-fork" is implemented. I don't foresee this causing any issues unless they mess up mappings since they are no longer a fork of Spigot. After testing on 1.21.4, I noticed a few protocol changes overlooked in the previous release. Below is a summary of those fixes.
Class mappings:
src/main/resources/mappings.json: Updated the mapping forParticleParamTargetColortoTrailParticleOptionand added a new version-specific mapping for version 1.21.4 and above.Packet constructors:
src/main/java/com/georgev22/particle/ParticleConstants.java: Added a new packet constructor for Minecraft versions 1.21.4 and above that includes an additional boolean parameter (two booleans:boolean forceSpawn,boolean important, both set to true).src/main/java/com/georgev22/particle/ParticlePacket.java: Updated thecreatePacketmethod to use the new packet constructor for versions 1.21.4 and above.