packetevents icon indicating copy to clipboard operation
packetevents copied to clipboard

1.21.2 update

Open booky10 opened this issue 1 year ago • 3 comments

~~Third snapshot was released last wednesday, so the release will probably still take some time.~~ ~~Rc1 was released on thursday, so the release will probably happen next week tuesday.~~ ~~This PR should be complete and ready, after testing.~~ Vanilla 1.21.2 and Spigot 1.21.2 are out, I've tested this PR on Fabric 1.21.2 and Spigot 1.21.2. Additionally, I've tested this PR on 1.20.6, 1.16.2 and 1.8.8.

TODO

  • [x] Update all registry mappings
  • [x] Update packet mappings
    • [x] Implement WrapperPlayServerRecipeBookSettings
    • [x] Implement every implementation of RecipeDisplay...
    • [x] Mark old recipe wrappers as obsolete, mojang has completely rewritten them
    • [x] Update packet serialization structures of existing packets
      • [x] ClientboundExplodePacket :(
      • [x] ClientboundPlaceGhostRecipePacket
      • [x] ClientboundPlayerPositionPacket
      • [x] ClientboundSetTimePacket
      • [x] ClientboundTeleportEntityPacket
      • [x] ClientboundUpdateRecipesPacket
      • [x] CommonPlayerSpawnInfo -> respawn packet + login packet
      • [x] ServerboundEditBookPacket limits?
      • [x] ServerboundPlaceRecipePacket
      • [x] ServerboundPlayerInputPacket
      • [x] ServerboundRecipeBookSeenRecipePacket
      • [x] ClientboundGameProfilePacket/ClientboundLoginFinishedPacket
  • [x] Update block tags / item tags
  • [x] early testing using on fabric
    • see https://github.com/booky10/packetevents/tree/testing/fabric-1-21-2, combines this pr + #1032
  • [x] Figure out how to handle attributes loosing their prefix
  • [x] Check color nbt format for particles

Noteworthy changes:

  • Custom recipe ingredients no longer allow for item components to be assigned, may affect something
  • The player inventory or the item cursor can no longer be updated using magic numbers and normal slot change packets, this is now done with WrapperPlayServerSetPlayerInventory and WrapperPlayServerSetCursorItem respectively
    • Packetevents "transforms" incorrectly used WrapperPlayServerSetSlot packets to these new packets for now
  • Both the BOAT entity type and CHEST_BOAT entity types have been split into separate entity types for each boat type
  • Packetevents no longer defines base components of item types in code, but loads a generated version-specific definition from file

booky10 avatar Aug 30 '24 19:08 booky10

Booky on it again 💪🏻 Extremely cool to see you constantly working on the latest snapshot support, so PacketEvents supports the latest Minecraft release almost the moment it drops!

Bram1903 avatar Aug 31 '24 10:08 Bram1903

I've tested re-encoding all packets (especially recipes) with a fabric server and fabric client, so this PR should be ready Should of course still be tested again after Paper (and Spigot) are done with upgrading to 1.21.2

booky10 avatar Oct 21 '24 02:10 booky10

1.21.2 has been released an hour ago and this PR has now been tested on Spigot 1.21.2.

booky10 avatar Oct 22 '24 16:10 booky10

Mojang has released 1.21.3, fixing crucial bugs, such as salmons being too small. Tthis PR should still work fine, nothing changed on the server side - except salmons of course

booky10 avatar Oct 23 '24 16:10 booky10