Make spec variable local

This commit is contained in:
Jeija 2014-04-24 22:56:10 +02:00
parent 843c68af14
commit d674101936

View File

@ -15,7 +15,7 @@ end
function digiline:getAnyInputRules(pos) function digiline:getAnyInputRules(pos)
local node = minetest.get_node(pos) local node = minetest.get_node(pos)
spec = digiline:getspec(node) local spec = digiline:getspec(node)
if not spec then return end if not spec then return end
if spec.wire then if spec.wire then
@ -30,7 +30,7 @@ end
function digiline:getAnyOutputRules(pos) function digiline:getAnyOutputRules(pos)
local node = minetest.get_node(pos) local node = minetest.get_node(pos)
spec = digiline:getspec(node) local spec = digiline:getspec(node)
if not spec then return end if not spec then return end
if spec.wire then if spec.wire then