Mineclonia/mods
Elias Åström 1c6d3c2fea 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 12:45:11 +02:00
..
CORE Fix crash when digging nodes with fishing rod 2021-04-16 22:45:36 +02:00
ENTITIES Remove unnecessary code in mcl_item_entity 2021-04-16 22:45:22 +02:00
ENVIRONMENT replace pairs() by ipairs() (3) 2021-02-18 15:26:09 +00:00
HELP Translate French - Small fixes 2021-02-16 22:30:26 +01:00
HUD fix a typo 2021-02-27 23:31:01 +04:00
ITEMS Do not include unnecessary tool_capabilities 2021-04-18 12:45:11 +02:00
MAPGEN Wrap https://github.com/minetest/minetest/issues/10995 around, thanks @SmallJoker 2021-02-28 16:35:21 +04:00
MISC Remove shulker shell and emerald to gold temporary crafting recipes 2021-02-16 09:57:38 +01:00
PLAYER Merge branch 'master' into master 2021-02-28 14:04:10 +00:00