Fix liftshaft air bug.

master
Gabriel Pérez-Cerezo 2016-10-09 18:54:34 +02:00 committed by Quentin Quaadgras
parent da42d34dde
commit c1602b6d71
1 changed files with 3 additions and 3 deletions

View File

@ -47,9 +47,9 @@ local function fetch_lift(pos, node, clicker, rel, i, open_door, plus)
return
end
local test = minetest.find_nodes_in_area({x=pos.x-2, y=pos.y+i, z=pos.z-2}, {x=pos.x+2, y=pos.y+i, z=pos.z+2}, "air")
if #test == 16 then
print("lift not found, too much air")
local test = minetest.find_nodes_in_area({x=pos.x-1, y=pos.y+i, z=pos.z-1}, {x=pos.x+1, y=pos.y+i, z=pos.z+1}, "air")
if #test == 9 then
print( "lift not found, too much air")
return
end