VoxeLibre/mods
sfan5 693a5317ef Fix non-serializable item entity unload crash
Some items, like shulkers or books, can have so much metadata that the
corresponding item entity can not be serialized by the Minetest engine.

Without this patch, dropping such an item and then moving away crashes
Minetest, as it can not serialize the entity with serializeString16()
when unloading a map block.

The patch resets the overlong metadata of non-serializable item entities.
This avoids a crash and makes it possible to retrieve a “sanitized” item
without metadata when the mapblock containing the item entity is reloaded.

Originally sfan5 guessed the maximum possible item entity serialization size
that would not lead to a crash as 65530 bytes, but anon5 calculated it to be
actually 65487 bytes. This has been experimentally verified by erlehmann.
2021-09-15 18:10:32 +02:00
..
CORE Fix server crash when players dig unknown nodes 2021-07-08 15:33:24 +02:00
ENTITIES Fix non-serializable item entity unload crash 2021-09-15 18:10:32 +02:00
ENVIRONMENT Merge branch 'master' into polish-translation 2021-06-02 10:14:25 +00:00
HELP Update French translation (part 1) 2021-08-13 11:35:18 +02:00
HUD Do not send useless HUDCHANGE packets 2021-09-15 17:47:35 +02:00
ITEMS Only use the shears once in dispenser if there are more mobs in front of the dispenser 2021-09-08 14:22:53 +00:00
MAPGEN Fix igloo hidden trapdoor with minetest.after(), https://git.minetest.land/MineClone2/MineClone2/issues/1797 2021-06-22 16:53:55 +04:00
MISC Merge branch 'master' into polish-translation 2021-06-02 10:14:25 +00:00
PLAYER Send FOV packets only when necessary 2021-09-15 18:08:58 +02:00