MineClone2/mods
Elias Åström 573b1dc44b Do not include unnecessary tool_capabilities
This commit makes enchanted tools which have no use for
tool_capabilities to not include it in their metadata.  It does this by
not including tool_capabilities in the metadata of an enchanted tool if
at least one of two cases is true:

(1) The tool is not enchanted with unbreaking or efficiency
(2) The tool does not have tool_capabilities defined in its definition

The first case covers situations like having a pickaxe only being
enchanted with silk_touch.  The second case covers situations like a
piece of armor being enchanted with unbreaking.
2021-04-18 11:40:43 +02:00
..
CORE Add global smoke spawning API 2021-04-14 18:14:21 +02:00
ENTITIES Fix get_light crash 2021-04-17 21:00:32 +02:00
ENVIRONMENT [mcl_weather] Fix crash on saving uninitialized data, https://git.minetest.land/MineClone2/MineClone2/issues/1361 2021-03-22 17:31:24 +04:00
HELP fix many codestyle issues 2021-04-16 13:35:03 +02:00
HUD credit me 2021-04-14 14:53:33 +00:00
ITEMS Do not include unnecessary tool_capabilities 2021-04-18 11:40:43 +02:00
MAPGEN fix many warnings (644 remaining) 2021-04-17 09:26:37 +02:00
MISC fix many codestyle errors 2021-04-17 07:42:49 +02:00
PLAYER Fix namtags being invisible 2021-04-17 20:57:12 +02:00