mojira.dev
MC-269457

Crash with set_lore item modifier setting more than 256 lores

Summary
Since 24w09a, there exists a cap on the number of lores an item stack can have. In 24w10a and later, it is 256. However, set_lore item modifier was not changed to limit the number of lores set, resulting in crashes in the same way as MC-269336, by adding 257 lores to the item stack.

Note that unlike MC-269336, the item stack also fails to serialize over the network, kicking any player that sees this item stack, and in singleplayer, instantly crashing the server (as the world tries to save, unsuccessfully).

Steps to Reproduce

  1. Add the attached data pack.

  2. Get a random item on the hotbar.

  3. Run /item modify entity @s hotbar.0 test:257_lores

Expected Result
The game does not crash.

Actual Result
The player gets kicked and the game crashes

Attachments

Comments 0

No comments.

apple502j

slicedlime

Plausible

Platform

Very Important

Crash

24w11a

24w12a

Retrieved