diff options
Diffstat (limited to 'castle_gates/doors.lua')
-rw-r--r-- | castle_gates/doors.lua | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/castle_gates/doors.lua b/castle_gates/doors.lua index 886af3d..58e3e4f 100644 --- a/castle_gates/doors.lua +++ b/castle_gates/doors.lua @@ -16,21 +16,6 @@ if minetest.get_modpath("doors") then {"default:tree", "default:tree"}, } }) - - local door_recipe - if minetest.get_modpath("xpanes") then - door_recipe = { - {"xpanes:jailbars_flat", "xpanes:jailbars_flat"}, - {"xpanes:jailbars_flat", "xpanes:jailbars_flat"}, - {"xpanes:jailbars_flat", "xpanes:jailbars_flat"}, - } - else - door_recipe = { - {"default:steel_ingot", ""}, - {"", "default:steel_ingot"}, - {"default:steel_ingot", ""}, - } - end doors.register("castle_gates:jail_door", { tiles = {{ name = "castle_door_jail.png", backface_culling = true }}, @@ -40,7 +25,11 @@ if minetest.get_modpath("doors") then groups = { cracky = 2, door = 1, flow_through = 1}, sound_open = "doors_steel_door_open", sound_close = "doors_steel_door_close", - recipe = door_recipe, + recipe = { + {"castle_gates:jailbars", "castle_gates:jailbars"}, + {"castle_gates:jailbars", "castle_gates:jailbars"}, + {"castle_gates:jailbars", "castle_gates:jailbars"}, + } }) minetest.register_alias("castle:oak_door_a", "castle_gates:oak_door_a") |