04e936d Some more pre-sizing
6553fc9 Only print invalid custom payload channel warnings in debug mode (#4257)
We previously had people complaining about this being an error and not understanding what it means + servers can't do anything about these errors anyway.
ddbe8ef Apply page network limit when converting book pages in 1.17->1.17.1 (#4256)
8e4da81 Move config option check for placement fix into packet handlers (#4248)
Fixes the config option breaking when using the reload command, also changes the message when using the /reload sub command.
1620fc3 Change "fix-1_21-placement-rotation" to true by default (#4245)
e878d77 Trim override materials are string to string
deab6a0 Don't allocate bufs in 1.18/1.20 chunk types Unlike Mojang, we don't sneak a byte array of data outside of the actual packet reading, so there's no reason to not just use the original buffer. Slicing doesn't allocate anything while also setting the reader index correctly, as also used in the previous types
77f0826 Skip extra buf copying entirely if wrapper had no changes
76db43c Don't copy full transformed buf during every transform The resulting modified buf is the exact same as before
f0eab71 Pre-size most allocated byte buffers Also avoids the default allocation size of 256 bytes for bufs that are much smaller than that
e9985ad Update mcstructs
157a1fe Small cleanup here and there
d48d0a2 Prettify error messages
157a1fe Small cleanup here and there
Lots of fixes, mostly to edge case data handling, and some more to older versions!
- Fixed items with block predicates causing disconnects for creative mode clients in 1.21->1.21.2 (by EnZaXD)
- Fixed errors from level 0 enchantments in 1.21->1.21.2
- Fixed painting entity data in 1.21->1.21.2
- Fixed opening chest boat inventories causing disconnects in 1.21->1.21.2
- Fixed boat types in 1.21->1.21.2 (by EnZaXD)
- Fixed item_name<->default name priority for items in 1.21->1.21.2 (by EnZaXD)
- Fixed some issues with item hover event displays in 1.20.5 and 1.21.2 (by EnZaXD)
- Fixed handling of empty lock codes in 1.21->1.21.2, usually sent by older servers (by valaphee, EnZaXD, kennytv)
- Fixed possible anticheat issues by dropping idle packets where only horizontal collision changed in 1.21->1.21.2 (by EnZaXD)
- Fixed empty custom data tags sometimes being removed with creative clients on 1.20.5/1.21 (by EnZaXD)
- Send enabled features packet in config phase for clients that have it in 1.19.1->1.19.3 (by EnZaXD)
- Fixed handling of block entity custom names in 1.12->1.13 (by EnZaXD)
- Fixed chunks possibly being invisible on 1.8 servers and older (by RK_01)
- Fixed some edgecase area effect cloud particle errors on older servers
- 1.21.2+ clients on 1.8 servers now get proper sword blocking animations through consumable item data (by RK_01)
If you want to get larger version updates early, consider supporting me via https://viaversion.com/donate. See the previous update notes for more info.
bc6ad16 Properly remove custom_data component if we created it in 1.20.5+ protocols (#4229)
33aecef Handle custom name in block entities in 1.12->1.13 (#4232)
Fixes https://github.com/ViaVersion/ViaFabricPlus/issues/592