From f78328759c885c65e59f5ae45aaed6441da78fa7 Mon Sep 17 00:00:00 2001 From: Grossam Date: Thu, 15 Aug 2019 09:25:03 +0200 Subject: [PATCH] =?UTF-8?q?Second=20fix=20of=20the=20same=20door=20bug?= =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doors.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doors.lua b/doors.lua index 7071a92..8b033b9 100644 --- a/doors.lua +++ b/doors.lua @@ -182,7 +182,6 @@ for _, current_door in ipairs(doors) do end timer:start(3) end - if scifi_nodes.doors_open_with_mesecon_only then rightclick = nil end function afterplace(pos, placer, itemstack, pointed_thing) minetest.set_node({x=pos.x,y=pos.y+1,z=pos.z},{name=opened_top,param2=nodeu.param2}) @@ -266,8 +265,9 @@ for _, current_door in ipairs(doors) do rules = mesecons_doors_rules }, } + local doors_rightclick = nil -- Crashes serv if empty table ! - if not scifi_nodes.doors_open_with_mesecon_only then doors_rightclick = open_doors end + if not scifi_nodes.doors_open_with_mesecon_only then doors_rightclick = open_door end minetest.register_node(closed, { description = current_door.base_name.." sliding door",