From c051ae7ae9d28c36ed5f9967a48bbac9ed297b97 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 21 Mar 2017 04:36:18 +0100 Subject: [PATCH] Register TNT entity for doc_identifier --- mods/ITEMS/mcl_tnt/depends.txt | 1 + mods/ITEMS/mcl_tnt/init.lua | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/mods/ITEMS/mcl_tnt/depends.txt b/mods/ITEMS/mcl_tnt/depends.txt index a135c3ff71..eec31c2bb0 100644 --- a/mods/ITEMS/mcl_tnt/depends.txt +++ b/mods/ITEMS/mcl_tnt/depends.txt @@ -1,3 +1,4 @@ mcl_core mcl_sounds mcl_fire +doc_identifier? diff --git a/mods/ITEMS/mcl_tnt/init.lua b/mods/ITEMS/mcl_tnt/init.lua index dfd9692ae8..5e040805c8 100644 --- a/mods/ITEMS/mcl_tnt/init.lua +++ b/mods/ITEMS/mcl_tnt/init.lua @@ -153,3 +153,7 @@ minetest.register_craft({ {'mcl_mobitems:gunpowder','group:sand','mcl_mobitems:gunpowder'} } }) + +if minetest.get_modpath("doc_identifier") then + doc.sub.identifier.register_object("mcl_tnt:tnt", "nodes", "mcl_tnt:tnt") +end