From 2186d2ddeb70c7c97295358250003235795753ea Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 29 Jul 2017 03:31:43 +0200 Subject: [PATCH] Add help entry alias for banner node --- mods/ITEMS/mcl_banners/depends.txt | 1 + mods/ITEMS/mcl_banners/init.lua | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/mods/ITEMS/mcl_banners/depends.txt b/mods/ITEMS/mcl_banners/depends.txt index a8070d13..fea9f0e4 100644 --- a/mods/ITEMS/mcl_banners/depends.txt +++ b/mods/ITEMS/mcl_banners/depends.txt @@ -2,3 +2,4 @@ mcl_sounds? mcl_core? mcl_wool? mcl_cauldrons? +doc? diff --git a/mods/ITEMS/mcl_banners/init.lua b/mods/ITEMS/mcl_banners/init.lua index 43e5d759..dcafaa43 100644 --- a/mods/ITEMS/mcl_banners/init.lua +++ b/mods/ITEMS/mcl_banners/init.lua @@ -284,6 +284,11 @@ minetest.register_entity("mcl_banners:standing_banner", { end, }) +if minetest.get_modpath("doc") then + -- This is a crappy alias, because it always shows the white banner help page, regardless of the true banner color. + doc.add_entry_alias("craftitems", "mcl_banners:banner_item_white", "nodes", "mcl_banners:standing_banner") +end + minetest.register_craft({ type = "fuel", recipe = "group:banner",