minor spacing tweaks, nothing functional
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Fri, 4 Jan 2013 06:12:39 +0000 (01:12 -0500)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Fri, 4 Jan 2013 06:12:39 +0000 (01:12 -0500)
autoplace.lua
flowing_logic.lua

index 1a53bf3e92a971a45fb7ebf4b046a3f2e4550ba4..54df02a84f656bd13f4544b792586c9c33d3c382 100644 (file)
@@ -182,9 +182,19 @@ function pipes_scansurroundings(pos)
 -- ...extra devices specified via the function's parameters
 -- ...except that this part is not implemented yet
 --
---     if (string.find(nym.name, "aero:outlet") ~= nil) then
---             pxm, pxp, pym, and/or pyp = 1 depending on the needed rules     
+-- xxx = nxm, nxp, nym, nyp, nzm, or nzp depending on the direction to check
+-- yyy = pxm, pxp, pym, pyp, pzm, or pzp accordingly.
+--
+--     if string.find(xxx.name, "modname:nodename") ~= nil then
+--             yyy = 1
 --     end
+--
+-- for example:
+--
+--     if string.find(nym.name, "aero:outlet") ~= nil then
+--             pym = 1
+--     end
+--
 
 end
 
index 6fa37e365ee589d7efd9e107690e1c6353c1c99b..95162a3b393ada48a67464305f6c92b6727a4ae2 100644 (file)
@@ -42,8 +42,8 @@ local check4inflows = function(pos,node)
                        if newnode ~= nil then dbg(newnode) end
                end
        end
-       if newnode then dbg(newnode..' to replace '..node.name) end
        if newnode then 
+               dbg(newnode..' to replace '..node.name) 
                minetest.env:add_node(pos,{name=newnode}) 
                minetest.env:get_meta(pos):set_string('source',minetest.pos_to_string(source))
        end