mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2024-08-20 05:14:05 +02:00
Test my own theory
This commit is contained in:
parent
33c81b3d72
commit
16262b3b51
7
init.lua
7
init.lua
@ -41,13 +41,10 @@ local function find_air(pos,player)
|
|||||||
local top = {pos.x, pos.y+1, pos.z}
|
local top = {pos.x, pos.y+1, pos.z}
|
||||||
local mid_node = minetest.get_node(mid)
|
local mid_node = minetest.get_node(mid)
|
||||||
local top_node = minetest.get_node(top)
|
local top_node = minetest.get_node(top)
|
||||||
for
|
while mid_node.name ~= "air" or mid_node.name ~= "ignore" and top_node.name ~= "air" or top_node.name ~= "ignore" do
|
||||||
mid_node.name ~= "air" or mid_node.name ~= "ignore" and
|
|
||||||
top_node.name ~= "air" or top_node.name ~= "ignore" do
|
|
||||||
pos.y = pos.y +2
|
pos.y = pos.y +2
|
||||||
else
|
|
||||||
return mid
|
|
||||||
end
|
end
|
||||||
|
return mid
|
||||||
end
|
end
|
||||||
|
|
||||||
local function parti(pos)
|
local function parti(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user