-
Bug
-
Resolution: Fixed
-
24w11a
-
None
-
Plausible
-
Crash
-
Very Important
-
Platform
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
- Add the attached data pack.
- Get a random item on the hotbar.
- 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