Closed ryuuta0217 closed 1 year ago
note: there seems to be no minecraft:smite enchantment on the server side.
The cause was due to ObjectList#remove of registryId from ObjectList byId. When ObjectList#remove was performed, the id was moved up and the 14th enchantment became the 13th. Then ObjectList#set to set the 13th enchantment as sharpness, which caused a mismatch in the enchantment calculation with the client.
Overview:
13th removed, 14th became the 13th. Set 13th as DamageEnchant Type 0 (minecraft:sharpness, MaxLevel=10). Oops! 14th enchantment is where…?
more rigorous checks at RegistryUtil#forceReplace now.
When enchanting in the enchantment table, there is a mismatch of enchantments granted between the client and server.
Reproduce this issue: