From 4608a2f98d5ba8fa7c0319dfcd96e6e81bbeb776 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 4 Feb 2018 07:00:07 +0100 Subject: [PATCH] Generalize some anvil attributes in help --- mods/HELP/mcl_doc/init.lua | 8 ++++---- mods/ITEMS/mcl_anvils/init.lua | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mods/HELP/mcl_doc/init.lua b/mods/HELP/mcl_doc/init.lua index 523e58bd..55eadcc2 100644 --- a/mods/HELP/mcl_doc/init.lua +++ b/mods/HELP/mcl_doc/init.lua @@ -152,11 +152,11 @@ doc.sub.items.register_factoid(nil, "groups", function(itemstring, def) end) doc.sub.items.register_factoid("nodes", "gravity", function(itemstring, def) - if minetest.get_item_group(itemstring, "anvil") ~= 0 then - return "This anvil is very heavy and damages and crushes (nearly) everything under its weight." - else - return "" + local s = "" + if minetest.get_item_group(itemstring, "crush_after_fall") == 1 then + s = s .. "This block crushes any block it falls into." end + return s end) -- Mining, hardness and all that diff --git a/mods/ITEMS/mcl_anvils/init.lua b/mods/ITEMS/mcl_anvils/init.lua index 37d0a1fc..78ef218a 100644 --- a/mods/ITEMS/mcl_anvils/init.lua +++ b/mods/ITEMS/mcl_anvils/init.lua @@ -337,7 +337,7 @@ end local anvildef0 = table.copy(anvildef) anvildef0.description = "Anvil" anvildef0._doc_items_longdesc = -[[The anvil allows you to repair tools and armor, and to give names to items. It has a limited durability, however. The anvil is able to fall and very heavy. Don't let it fall on your head! It crushes (nearly) everything under its weight and hurts everyone on its way down.]] +[[The anvil allows you to repair tools and armor, and to give names to items. It has a limited durability, however. Don't let it fall on your head, it could be quite painful!]] anvildef0._doc_items_usagehelp = "To use an anvil, rightclick it. An anvil has 2 input slots (on the left) and one output slot.".."\n".. "To rename items, put an item stack in one of the item slots while keeping the other input slot empty. Type in a name, hit enter or “Set Name”, then take the renamed item from the output slot.".."\n".. -- 2.11.4.GIT