Commit Graph

14 Commits

Author SHA1 Message Date
Vanessa Ezekowitz 7488f6c091 Fix glitch in tube autorouter
(brain-o in how I was handling unknown/bad nodes being passed to it.  this
works better and lets the code do its job properly).
2013-12-24 09:11:26 -05:00
Novatux 10cf11e008 A few more fixes (spamming the commit log again...) 2013-12-21 11:11:36 +01:00
Vanessa Ezekowitz c0ce62dacf local-ize a few more variables and functions 2013-12-15 05:53:11 -05:00
Vanessa Ezekowitz 53f6e67399 local-ize a few more functions 2013-12-15 05:40:26 -05:00
Vanessa Ezekowitz 659b4e42b2 local-ize a few more variables, move all of the nodebox models
into their own file and confine them and pretty much everything
else to the pipeworks.{} table (still global though).  More to
come.
2013-12-15 04:35:59 -05:00
Vanessa Ezekowitz bd80f18cfc local-ize pretty muchg everything that was previously global except where
stuff needs to be globally-visible.  Also, fix a bad drop on valve.
2013-12-15 02:53:10 -05:00
Vanessa Ezekowitz 29da8992ec More sanity checks on the nodeside() function, courtesy ShadowNinja 2013-12-10 21:41:15 -05:00
Vanessa Ezekowitz e4a7af5858 Better way to catch that incoming nil, return a real value on the way out 2013-12-10 21:18:29 -05:00
Vanessa Ezekowitz ebfa12205a Revert "catch nil return from facedir_to_dir() in tube autoplace code"
This reverts commit 4f9c7a43c9.
2013-12-10 21:16:33 -05:00
Vanessa Ezekowitz 4f9c7a43c9 catch nil return from facedir_to_dir() in tube autoplace code 2013-12-10 21:09:38 -05:00
Vanessa Ezekowitz 713cf01585 limit tube autoconnect checking to only run if tube.connect_sides
is defined for a particular node (rather than the whole tube table).

Also, tweak wording of an error message to account for line
numbering changes.
2013-11-26 00:46:36 -05:00
Vanessa Ezekowitz bd1d8bbd86 Make the tube_connects={} method work properly for technic devices.
Also phase out "old new" API, leaving only the "tube_connects={}" method,
as nothing in technic or pipeworks uses it.

Fix a few more places where minetest.facedir_to_dir() was duplicated, since
that code is part of Minetest 0.4.8.
2013-11-26 00:26:38 -05:00
Vanessa Ezekowitz bf7993b802 get rid of some extraneous print statements 2013-11-25 23:59:52 -05:00
Vanessa Ezekowitz 7289bfcfba Split pipe and tube autorouting functions into separate files. 2013-11-25 23:55:52 -05:00