diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-03-01 01:01:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-01 01:01:02 -0500 |
commit | 7d872c05eef0752ac933a685b55213082a7c24ab (patch) | |
tree | 8b97a8961704f756b98d84c94c9af7edf604f1f3 | |
parent | cdbe93cdd81542a9ea5a9e775e771f87b4cc4c11 (diff) | |
parent | acf7ee4a8045c135961b20525df8d098b6437857 (diff) | |
download | pipeworks-7d872c05eef0752ac933a685b55213082a7c24ab.tar pipeworks-7d872c05eef0752ac933a685b55213082a7c24ab.tar.gz pipeworks-7d872c05eef0752ac933a685b55213082a7c24ab.tar.bz2 pipeworks-7d872c05eef0752ac933a685b55213082a7c24ab.tar.xz pipeworks-7d872c05eef0752ac933a685b55213082a7c24ab.zip |
Merge pull request #160 from cheapie/master
Special-case technic machines
-rw-r--r-- | filter-injector.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/filter-injector.lua b/filter-injector.lua index 3427894..2daf760 100644 --- a/filter-injector.lua +++ b/filter-injector.lua @@ -175,6 +175,23 @@ local function punch_filter(data, filtpos, filtnode, msg) local fromdef = minetest.registered_nodes[fromnode.name] if not fromdef then return end local fromtube = fromdef.tube + local input_special_cases = { + ["technic:mv_furnace"] = "dst", + ["technic:mv_furnace_active"] = "dst", + ["technic:mv_alloy_furnace"] = "dst", + ["technic:mv_alloy_furnace_active"] = "dst", + ["technic:mv_centrifuge"] = "dst", + ["technic:mv_centrifuge_active"] = "dst", + ["technic:mv_compressor"] = "dst", + ["technic:mv_compressor_active"] = "dst", + ["technic:mv_extractor"] = "dst", + ["technic:mv_extractor_active"] = "dst", + ["technic:mv_grinder"] = "dst", + ["technic:mv_grinder_active"] = "dst", + ["technic:tool_workshop"] = "src", + } + + if fromtube then fromtube.input_inventory = input_special_cases[fromnode.name] or fromtube.input_inventory end if not (fromtube and fromtube.input_inventory) then return end local slotseq_mode |