minor spacing tweaks, nothing functional

This commit is contained in:
Vanessa Ezekowitz 2013-01-04 01:12:39 -05:00
parent 6419ecb117
commit 88bc800ccb
2 changed files with 13 additions and 3 deletions

View File

@ -182,9 +182,19 @@ function pipes_scansurroundings(pos)
-- ...extra devices specified via the function's parameters -- ...extra devices specified via the function's parameters
-- ...except that this part is not implemented yet -- ...except that this part is not implemented yet
-- --
-- if (string.find(nym.name, "aero:outlet") ~= nil) then -- xxx = nxm, nxp, nym, nyp, nzm, or nzp depending on the direction to check
-- pxm, pxp, pym, and/or pyp = 1 depending on the needed rules -- yyy = pxm, pxp, pym, pyp, pzm, or pzp accordingly.
--
-- if string.find(xxx.name, "modname:nodename") ~= nil then
-- yyy = 1
-- end -- end
--
-- for example:
--
-- if string.find(nym.name, "aero:outlet") ~= nil then
-- pym = 1
-- end
--
end end

View File

@ -42,8 +42,8 @@ local check4inflows = function(pos,node)
if newnode ~= nil then dbg(newnode) end if newnode ~= nil then dbg(newnode) end
end end
end end
if newnode then dbg(newnode..' to replace '..node.name) end
if newnode then if newnode then
dbg(newnode..' to replace '..node.name)
minetest.env:add_node(pos,{name=newnode}) minetest.env:add_node(pos,{name=newnode})
minetest.env:get_meta(pos):set_string('source',minetest.pos_to_string(source)) minetest.env:get_meta(pos):set_string('source',minetest.pos_to_string(source))
end end