1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-26 02:30:38 +01:00

[mesecons] Fix two lingering global variables

- For #508
This commit is contained in:
LeMagnesium 2016-09-01 12:16:19 +02:00
parent 996d0c9785
commit 83944bf662
No known key found for this signature in database
GPG Key ID: A54DDB5272C51E8B
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ end
local function get_digiline_send(pos) local function get_digiline_send(pos)
if not digiline then return end if not rawget(_G, "digiline") then return end
return function(channel, msg) return function(channel, msg)
minetest.after(0, function() minetest.after(0, function()
digiline:receptor_send(pos, digiline.rules.default, channel, msg) digiline:receptor_send(pos, digiline.rules.default, channel, msg)

View File

@ -723,7 +723,7 @@ local piston_up_down_get_stopper = function (node, dir, stack, stackid)
end end
local piston_get_stopper = function (node, dir, stack, stackid) local piston_get_stopper = function (node, dir, stack, stackid)
pistonspec = minetest.registered_nodes[node.name].mesecons_piston local pistonspec = minetest.registered_nodes[node.name].mesecons_piston
dir = piston_get_direction(pistonspec.dir, node) dir = piston_get_direction(pistonspec.dir, node)
local pusherpos = vector.add(stack[stackid].pos, dir) local pusherpos = vector.add(stack[stackid].pos, dir)
local pushernode = minetest.get_node(pusherpos) local pushernode = minetest.get_node(pusherpos)