1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

Reset mesecons to 8 Dec

This commit is contained in:
LeMagnesium
2015-04-13 21:47:57 +02:00
parent dd40c6828e
commit 56e5d7a9e6
54 changed files with 767 additions and 1505 deletions

View File

@ -135,12 +135,8 @@ end
-- returns true if player was found, false if not
local node_detector_scan = function (pos)
if not pos then return end
local node = minetest.get_node_or_nil(pos)
if not node then return end
local scandir = minetest.facedir_to_dir(node.param2)
if not scandir then return end
local frontpos = vector.subtract(pos, scandir)
local node = minetest.get_node(pos)
local frontpos = vector.subtract(pos, minetest.facedir_to_dir(node.param2))
local frontnode = minetest.get_node(frontpos)
local meta = minetest.get_meta(pos)
return (frontnode.name == meta:get_string("scanname")) or