summaryrefslogtreecommitdiff
path: root/textures/pipeworks_storage_tank_front_10.png
diff options
context:
space:
mode:
authorCy <whatever>2013-10-14 23:45:07 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-10-14 23:45:07 -0400
commit28328d975c55b13ce7d2770f5e5ec643f7ac84ac (patch)
treea2bd1fe7ee2d1fa222e4bf4240131946e58ae338 /textures/pipeworks_storage_tank_front_10.png
parent79897c8fe60add57f9c759c74f3683c4732dda14 (diff)
downloadpipeworks-28328d975c55b13ce7d2770f5e5ec643f7ac84ac.tar
pipeworks-28328d975c55b13ce7d2770f5e5ec643f7ac84ac.tar.gz
pipeworks-28328d975c55b13ce7d2770f5e5ec643f7ac84ac.tar.bz2
pipeworks-28328d975c55b13ce7d2770f5e5ec643f7ac84ac.tar.xz
pipeworks-28328d975c55b13ce7d2770f5e5ec643f7ac84ac.zip
Multiple updates:
1) Refactor autoplace, There was a lot of redundant code and like a dozen unneccessary string scans for every node next to every tube placed! I put it all into indexed tables and loops instead of bizarre and unexplainable variable names and copy and pasted code. There was also no support for notifying a chest when an item has been taken from it by a filter, so I added something for that. I also thought it prudent to fall back on the allow_metadata_inventory_take function should a special can_remove not exist. In fact if can_insert doesn't exist, it calls allow_metadata_inventory_put instead. I also added a thing for allowing pipes to attach to nodes of other modules, without having to hard code type all those node names into autoplace.lua. Basically node.tube.collects(i,param2) and i is the direction from the pipe and param2 is the param2 of what it's pointing at. I also abstracted the inscrutable correlation between i and param2 by trial and error (and the paramwand mod) into understandable functions. There was no pipeworks namespace so I created it, and put these functions into pipeworks.collects (as distinguished from a node.tube.collects function, which uses those functions) And now it's too late to cart my old clothes to the thrift store, dangit. 2) My "node.tube.collects" idea might be redundant with the node.tube.connect_sides thing, though possibly more versatile so I'll leave it in. 3) I was using node.tube.connects and fancy functions for checking if it's the sides or top or whatnot, and this connect_side thing came in. This should make both my way and the way using connect_side work. Also removed some debugging cruft
Diffstat (limited to 'textures/pipeworks_storage_tank_front_10.png')
0 files changed, 0 insertions, 0 deletions