1
0
Fork 0
VoxeLibre/mods/ENTITIES/mcl_item_entity
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
..
sounds Adjust volume of item collection sound 2021-04-03 20:53:34 -04:00
README.txt Rename “subgame” to “game” (partial fix) 2018-03-25 22:20:32 +02:00
init.lua Fix non-serializable item entity unload crash 2021-09-15 18:10:32 +02:00
mod.conf Use mod.conf in all mods, part 1 2021-03-04 15:22:14 +01:00

README.txt

===ITEM_DROP MOD for MINETEST-C55===
by PilzAdam

Introduction:
This mod adds Minecraft like drop/pick up of items to Minetest.

This mod has been forked from item_drop in the VoxBox game.

License:
Sourcecode: WTFPL (see below)
Sound: WTFPL (see below)

See also:
http://minetest.net/

         DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                    Version 2, December 2004

 Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>

 Everyone is permitted to copy and distribute verbatim or modified
 copies of this license document, and changing it is allowed as long
 as the name is changed.

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. You just DO WHAT THE FUCK YOU WANT TO.