ViaVersion / ViaBackwards

Allows the connection of older clients to newer server versions for Minecraft servers.
https://hangar.papermc.io/ViaVersion/ViaBackwards
GNU General Public License v3.0
459 stars 87 forks source link

Fix compressed id overlap in legacy block item rewriter #874

Closed FlorianMichael closed 1 month ago

FlorianMichael commented 1 month ago

Fixes an edge case in ViaRewind where different data ints with the same item id are compressing to the same data int;

(383 << 4) | (68 & 15) = 6132 (383 << 4) | (100 & 15) = 6132