Mineclonia/mods/ENTITIES/mcl_item_entity
sfan5 62d5b547a0
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-07-30 17:13:26 +02:00
..
sounds Convert all sounds (except music) to mono 2017-11-13 01:24:24 +01:00
init.lua Fix non-serializable item entity unload crash 2021-07-30 17:13:26 +02:00
mod.conf Move data from deprecated files to mod.conf 2021-05-16 13:44:04 +02:00
README.txt Rename “subgame” to “game” (partial fix) 2018-03-25 22:20:32 +02:00

===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.