diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-11-06 19:53:57 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-11-06 19:53:57 -0500 |
commit | a8fbfaac02cebed72477b7e11444256eb48fc4e7 (patch) | |
tree | c8a7ec09fccba3d640287c1a8cbdaace33d1d997 /pipeworks | |
parent | fadb973205f3ad378db409c32f0ecd93b7df73ee (diff) | |
download | dreambuilder_modpack-a8fbfaac02cebed72477b7e11444256eb48fc4e7.tar dreambuilder_modpack-a8fbfaac02cebed72477b7e11444256eb48fc4e7.tar.gz dreambuilder_modpack-a8fbfaac02cebed72477b7e11444256eb48fc4e7.tar.bz2 dreambuilder_modpack-a8fbfaac02cebed72477b7e11444256eb48fc4e7.tar.xz dreambuilder_modpack-a8fbfaac02cebed72477b7e11444256eb48fc4e7.zip |
update biome lib and pipeworks
Diffstat (limited to 'pipeworks')
-rw-r--r-- | pipeworks/pressure_logic/flowable_node_registry_install.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pipeworks/pressure_logic/flowable_node_registry_install.lua b/pipeworks/pressure_logic/flowable_node_registry_install.lua index 5cf1941..0ad00a6 100644 --- a/pipeworks/pressure_logic/flowable_node_registry_install.lua +++ b/pipeworks/pressure_logic/flowable_node_registry_install.lua @@ -67,8 +67,8 @@ register.directional_vertical_fixed = function(nodename, topside) end -- register a node as a directional flowable whose accepting sides depends upon param2 rotation. --- used for entry panels, valves, flow sensors and spigots, --- whose facing axis is always upwards and can only rotate horizontally. +-- used for entry panels, valves, flow sensors and spigots. +-- this is mostly for legacy reasons and SHOULD NOT BE USED IN NEW CODE. register.directional_horizonal_rotate = function(nodename, doubleended) local rotations = { {x= 0,y= 0,z= 1}, @@ -79,6 +79,12 @@ register.directional_horizonal_rotate = function(nodename, doubleended) local getends = function(node) --local dname = "horizontal rotate getends() " local param2 = node.param2 + -- the pipeworks nodes use a fixed value for vertical facing nodes + -- if that is detected, just return that directly. + if param2 == 17 then + return {{x=0,y=1,z=0}, {x=0,y=-1,z=0}} + end + -- the sole end of the spigot points in the direction the rotation bits suggest -- also note to self: lua arrays start at one... local mainend = (param2 % 4) + 1 |