diff options
author | tuedel <tuedel+github@tdl.gr> | 2020-09-18 23:27:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-19 00:27:47 +0300 |
commit | 3202bf6786d855566b06ce04719c25822dcd7328 (patch) | |
tree | 31cdb4cac35b19d2a06a24a940b00d1d0ae7ae3b | |
parent | fedbf4937224c79d49bb5077b47ebf53c38c9832 (diff) | |
download | mesecons-3202bf6786d855566b06ce04719c25822dcd7328.tar mesecons-3202bf6786d855566b06ce04719c25822dcd7328.tar.gz mesecons-3202bf6786d855566b06ce04719c25822dcd7328.tar.bz2 mesecons-3202bf6786d855566b06ce04719c25822dcd7328.tar.xz mesecons-3202bf6786d855566b06ce04719c25822dcd7328.zip |
mesecons_doors: Add MTG steel bar door and trapdoor (#523)
-rw-r--r-- | mesecons_doors/init.lua | 7 | ||||
-rw-r--r-- | mesecons_doors/mod.conf | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mesecons_doors/init.lua b/mesecons_doors/init.lua index cf6faeb..0f7bea7 100644 --- a/mesecons_doors/init.lua +++ b/mesecons_doors/init.lua @@ -73,6 +73,7 @@ meseconify_door("doors:door_wood") meseconify_door("doors:door_steel") meseconify_door("doors:door_glass") meseconify_door("doors:door_obsidian_glass") +meseconify_door("xpanes:door_steel_bar") -- Trapdoor local function trapdoor_switch(pos, node) @@ -110,6 +111,12 @@ if doors and doors.get then minetest.override_item("doors:trapdoor_open", override) minetest.override_item("doors:trapdoor_steel", override) minetest.override_item("doors:trapdoor_steel_open", override) + + if minetest.registered_items["xpanes:trapdoor_steel_bar"] then + minetest.override_item("xpanes:trapdoor_steel_bar", override) + minetest.override_item("xpanes:trapdoor_steel_bar_open", override) + end + else if minetest.registered_nodes["doors:trapdoor"] then minetest.override_item("doors:trapdoor", { diff --git a/mesecons_doors/mod.conf b/mesecons_doors/mod.conf index da12b38..4daab34 100644 --- a/mesecons_doors/mod.conf +++ b/mesecons_doors/mod.conf @@ -1,2 +1,3 @@ name = mesecons_doors depends = mesecons, doors +optional_depends = xpanes |