Fix liftshaft air bug.
This commit is contained in:
parent
da42d34dde
commit
c1602b6d71
6
init.lua
6
init.lua
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user