summaryrefslogtreecommitdiff
path: root/autoplace_tubes.lua
AgeCommit message (Collapse)Author
2020-06-30Consider connect_sides for item transportAlexander Ried
Previously connect_sides was only used to choose the correct visual model, but not during item transport. This allowed items to exit tubes in directions without a visual connection and enter objects from sides that should not be connectable according to connect_sides. For example an item could enter a chest from the front, if a tube passed there. This change saves the connect_sides in the meta table of the object whenever the visual representation is updated. When nothing is cached yet, it uses the old behavior. That way it does not break existing builds.
2018-11-27fix metadata loss on rotateThomas Rudin
use swap_node() instead of set_node() so locked chests can be used again after rotation
2018-09-15Tubes now update their connections when rotated with the screwdriver.12Me21
2017-04-04Namespace pollution cleanup (Used list at #154)ForbiddenJ
2015-02-07make all tubes call the routing functionsVanessa Ezekowitz
using their after_place/after_dig callbacks
2015-02-07remove obsolete calls to register_on_placenode/dignodeVanessa Ezekowitz
they're slow and obsolete
2015-01-29chmod -x *.luaTim
2014-11-22update to use current mesecons APIVanessa Ezekowitz
requires mesecons commit 5be179bf110b44bdc06df6dbfde4e61487cf0635 or newer.
2014-08-14Major rewrite of items in tubesNovatux
2014-02-08check for malformed table in scan_for_tube_objects()Vanessa Ezekowitz
2014-01-05fix nil reference crash in tube autorouter when unknown nodes are nearbyVanessa Ezekowitz
(?)
2014-01-03Support for the mesecons mvps callbackNovatux
2013-12-31Add 6d tubes, cleanup code a bitNovatux
2013-12-24Fix glitch in tube autorouterVanessa Ezekowitz
(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-21A few more fixes (spamming the commit log again...)Novatux
2013-12-15local-ize a few more variables and functionsVanessa Ezekowitz
2013-12-15local-ize a few more functionsVanessa Ezekowitz
2013-12-15local-ize a few more variables, move all of the nodebox modelsVanessa Ezekowitz
into their own file and confine them and pretty much everything else to the pipeworks.{} table (still global though). More to come.
2013-12-15local-ize pretty muchg everything that was previously global except whereVanessa Ezekowitz
stuff needs to be globally-visible. Also, fix a bad drop on valve.
2013-12-10More sanity checks on the nodeside() function, courtesy ShadowNinjaVanessa Ezekowitz
2013-12-10Better way to catch that incoming nil, return a real value on the way outVanessa Ezekowitz
2013-12-10Revert "catch nil return from facedir_to_dir() in tube autoplace code"Vanessa Ezekowitz
This reverts commit 4f9c7a43c9f1f0ab3286c755c49bd8d2951b4dc8.
2013-12-10catch nil return from facedir_to_dir() in tube autoplace codeVanessa Ezekowitz
2013-11-26limit tube autoconnect checking to only run if tube.connect_sidesVanessa Ezekowitz
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-26Make the tube_connects={} method work properly for technic devices.Vanessa Ezekowitz
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-25get rid of some extraneous print statementsVanessa Ezekowitz
2013-11-25Split pipe and tube autorouting functions into separate files.Vanessa Ezekowitz