Second fix of the same door bug…

This commit is contained in:
Grossam 2019-08-15 09:25:03 +02:00
parent 3344f45bd1
commit f78328759c
1 changed files with 2 additions and 2 deletions

View File

@ -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",