changed default orientation of spigot to make it easier to place.
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Tue, 1 Jan 2013 23:00:16 +0000 (18:00 -0500)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Tue, 1 Jan 2013 23:00:16 +0000 (18:00 -0500)
autoplace.lua
devices.lua

index c70095f60d72f69c135edefa821ad1d39385320d..7e6a329ee8560d7471c6e6eef5dcf3240611ff53 100644 (file)
@@ -130,22 +130,22 @@ function pipes_scansurroundings(pos)
 -- ...spigots...
 
        if (string.find(nxm.name, "pipeworks:spigot") ~= nil)
-         and nxm.param2 == 2 then
+         and nxm.param2 == 1 then
                pxm=1
        end
 
        if (string.find(nxp.name, "pipeworks:spigot") ~= nil)
-         and nxp.param2 == 0 then
+         and nxp.param2 == 3 then
                pxp=1
        end
 
        if (string.find(nzm.name, "pipeworks:spigot") ~= nil)
-         and nzm.param2 == 1 then
+         and nzm.param2 == 0 then
                pzm=1
        end
 
        if (string.find(nzp.name, "pipeworks:spigot") ~= nil)
-         and nzp.param2 == 3 then
+         and nzp.param2 == 2 then
                pzp=1
        end
 
index fadba0955afb07e6e95d333676c2d1b45ec10c3d..549c6437d395fcb4ae79afa91e2f29ea66e30e6e 100644 (file)
@@ -171,7 +171,7 @@ minetest.register_node("pipeworks:grating", {
 -- outlet spigot
 
        local spigotboxes = {}
-       pipe_addbox(spigotboxes, pipe_leftstub)
+       pipe_addbox(spigotboxes, pipe_backstub)
        pipe_addbox(spigotboxes, spigot_bottomstub)
        pipe_addbox(spigotboxes, pipe_bendsphere)
 
@@ -209,7 +209,7 @@ minetest.register_node("pipeworks:spigot", {
        },
        selection_box = {
                type = "fixed",
-               fixed = { -8/16, -6/16, -2/16, 2/16, 2/16, 2/16 }
+               fixed = { -2/16, -6/16, -2/16, 2/16, 2/16, 8/16 }
        }
 })