From 3976c7c4b921e4a2ca6823b1410f80061d23372d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 6 Feb 2019 11:40:51 +0100 Subject: [PATCH] Add doors and trapdoors to decoration blocks --- mods/ITEMS/mcl_doors/api_doors.lua | 2 +- mods/ITEMS/mcl_doors/api_trapdoors.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_doors/api_doors.lua b/mods/ITEMS/mcl_doors/api_doors.lua index f17e85c8cc..e3e8827943 100644 --- a/mods/ITEMS/mcl_doors/api_doors.lua +++ b/mods/ITEMS/mcl_doors/api_doors.lua @@ -90,7 +90,7 @@ function mcl_doors:register_door(name, def) _doc_items_usagehelp = usagehelp, inventory_image = def.inventory_image, stack_max = 64, - groups = { mesecon_conductor_craftable = 1 }, + groups = { mesecon_conductor_craftable = 1, deco_block = 1 }, on_place = function(itemstack, placer, pointed_thing) if not pointed_thing.type == "node" or not placer or not placer:is_player() then return itemstack diff --git a/mods/ITEMS/mcl_doors/api_trapdoors.lua b/mods/ITEMS/mcl_doors/api_trapdoors.lua index 89a4bef541..9e69a552c4 100644 --- a/mods/ITEMS/mcl_doors/api_trapdoors.lua +++ b/mods/ITEMS/mcl_doors/api_trapdoors.lua @@ -89,6 +89,7 @@ function mcl_doors:register_trapdoor(name, def) local groups_closed = groups groups_closed.trapdoor = 1 + groups_closed.deco_block = 1 minetest.register_node(name, { description = def.description, _doc_items_longdesc = longdesc, @@ -158,6 +159,7 @@ function mcl_doors:register_trapdoor(name, def) } groups_open.trapdoor = 2 + groups_open.not_in_creative_inventory = 1 minetest.register_node(name.."_open", { drawtype = "nodebox", tiles = tiles_open,