Pathfinding: Fix for mod security - joining up Jumper library code (WIP)

This commit is contained in:
Zorman2000
2017-04-03 21:48:17 -04:00
parent afe8dc8f6e
commit 297dd379a6
7 changed files with 1745 additions and 31 deletions

View File

@ -146,6 +146,7 @@ function npc.places.openable_node_is_entrance(pos)
local node = minetest.get_node(pos)
local x_adj = 0
local z_adj = 0
minetest.log(node.param2)
if node.param2 then
if node.param2 == 0 then
@ -157,7 +158,8 @@ function npc.places.openable_node_is_entrance(pos)
end
end
--local first_check_pos = {x=, y=, z=}
local y_adj = 2
local first_check_pos = {x=pos.x + x_adj, y=pos.y + y_adj, z=pos.z + z_adj}
end