From d34d368306454a428b4a927a3206320a87a2c8ab Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 15 Jun 2018 21:26:15 +0200 Subject: [PATCH] Disable double doors because of bug on place --- mods/ITEMS/mcl_doors/api_doors.lua | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/mods/ITEMS/mcl_doors/api_doors.lua b/mods/ITEMS/mcl_doors/api_doors.lua index fd5171ed48..f17e85c8cc 100644 --- a/mods/ITEMS/mcl_doors/api_doors.lua +++ b/mods/ITEMS/mcl_doors/api_doors.lua @@ -134,13 +134,11 @@ function mcl_doors:register_door(name, def) elseif p2 == 3 then pt3.z = pt3.z-1 end - if not string.find(minetest.get_node(pt3).name, name.."_b_") then - minetest.set_node(pt, {name=name.."_b_1", param2=p2}) - minetest.set_node(pt2, {name=name.."_t_1", param2=p2}) - else - minetest.set_node(pt, {name=name.."_b_2", param2=p2}) - minetest.set_node(pt2, {name=name.."_t_2", param2=p2}) - end + -- Set door nodes + minetest.set_node(pt, {name=name.."_b_1", param2=p2}) + minetest.set_node(pt2, {name=name.."_t_1", param2=p2}) + -- TODO: Mirror door when 2 doors are placed next to each other, to create double doors + if def.sounds and def.sounds.place then minetest.sound_play(def.sounds.place, {pos=pt}) end