From d86d394fc17b299684ca882d850d5eddf0839835 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Thu, 25 Feb 2016 16:42:58 +0100 Subject: [PATCH] Fix doors aliases (finally) --- nodes.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/nodes.lua b/nodes.lua index a9d953f..cb8d844 100644 --- a/nodes.lua +++ b/nodes.lua @@ -208,7 +208,6 @@ xdecor.register("cushion_block", { groups = {snappy=3, flammable=3, fall_damage_add_percent=-75, not_in_creative_inventory=1} }) - local function door_access(name) return name:find("prison") end local xdecor_doors = { japanese = { @@ -254,10 +253,16 @@ for name, recipe in pairs(xdecor_doors) do recipe = recipe }) minetest.register_alias("xdecor:"..name.."_door", "doors:"..name.."_door") - minetest.register_alias("xdecor:"..name.."_door_a", "air") - minetest.register_alias("xdecor:"..name.."_door_b", "doors:"..name.."_door_a") + minetest.register_alias("xdecor:"..name.."_door_t_1", "air") + minetest.register_alias("xdecor:"..name.."_door_t_2", "air") + minetest.register_alias("xdecor:"..name.."_door_b_1", "doors:"..name.."_door_a") + minetest.register_alias("xdecor:"..name.."_door_b_2", "doors:"..name.."_door_b") end minetest.register_alias("xdecor:prison_rust_door", "doors:rusty_prison_door") +minetest.register_alias("xdecor:prison_rust_door_t_1", "air") +minetest.register_alias("xdecor:prison_rust_door_t_2", "air") +minetest.register_alias("xdecor:prison_rust_door_b_1", "doors:rusty_prison_door_a") +minetest.register_alias("xdecor:prison_rust_door_b_2", "doors:rusty_prison_door_b") xdecor.register("empty_shelf", { description = "Empty Shelf", @@ -435,7 +440,8 @@ for _, b in pairs({{"cactus", "cactus"}, {"moon", "stone"}}) do minetest.register_craft({ output = "xdecor:"..b[1].."brick", - recipe = {{"default:brick", "default:"..b[2]}} + type = "shapeless", + recipe = {"default:brick", "default:"..b[2]} }) end