Made pipes able to carry water!
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Fri, 4 Jan 2013 06:34:25 +0000 (01:34 -0500)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Fri, 4 Jan 2013 06:34:25 +0000 (01:34 -0500)
It was just a minor logic error resulting from moving the water flowing code
into it's own file when I originally imported it.  Many thanks to Mauvebic for
writing it!

flowing_logic.lua
init.lua

index 95162a3b393ada48a67464305f6c92b6727a4ae2..d58d124adb20ee4a9b2e3986d64113fbbe20de02 100644 (file)
@@ -86,22 +86,22 @@ local spigot_check = function(pos,node)
 end
 
 minetest.register_abm({
-       nodenames = empty_nodenames,
-       interval = 15,
+       nodenames = pipes_empty_nodenames,
+       interval = 1,
        chance = 1,
        action = function(pos, node, active_object_count, active_object_count_wider) check4inflows(pos,node) end
 })
 
 minetest.register_abm({
-       nodenames = full_nodenames,
-       interval = 10,
+       nodenames = pipes_full_nodenames,
+       interval = 1,
        chance = 1,
        action = function(pos, node, active_object_count, active_object_count_wider) checksources(pos,node) end
 })
 
 minetest.register_abm({
        nodenames = {'pipeworks:outlet','pipeworks:spigot'},
-       interval = 10,
+       interval = 1,
        chance = 1,
        action = function(pos, node, active_object_count, active_object_count_wider) 
                if node.name == 'pipeworks:outlet' then update_outlet(pos)
index fe85f406ebf46b7737a4f255ecbd53f2655e2360..d7da2369d27db17046a49d2e9480c33a227211c5 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -135,8 +135,8 @@ end
 
 -- now define the nodes!
 
-local empty_nodenames = {}
-local full_nodenames = {}
+pipes_empty_nodenames = {}
+pipes_full_nodenames = {}
 
 for xm = 0, 1 do
 for xp = 0, 1 do
@@ -310,8 +310,8 @@ for zp = 0, 1 do
                        pipe_scanforobjects(pos)
                end
        })
-       table.insert(empty_nodenames,"pipeworks:pipe_"..pname.."_empty") -- for the abms
-       table.insert(full_nodenames,"pipeworks:pipe_"..pname.."_loaded") -- for bacon
+       table.insert(pipes_empty_nodenames,"pipeworks:pipe_"..pname.."_empty") -- for the abms
+       table.insert(pipes_full_nodenames,"pipeworks:pipe_"..pname.."_loaded") -- for bacon
 end
 end
 end