diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-12 16:15:39 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-12 16:15:39 -0400 |
commit | 3679943620efccf45b330c25b2b7ff7636365104 (patch) | |
tree | b93c070e34e038e921d70a211d30b3252808ef0b | |
parent | 0c0e6a6b66d09082f56f388da1e252b71a62d44c (diff) | |
download | pipeworks-3679943620efccf45b330c25b2b7ff7636365104.tar pipeworks-3679943620efccf45b330c25b2b7ff7636365104.tar.gz pipeworks-3679943620efccf45b330c25b2b7ff7636365104.tar.bz2 pipeworks-3679943620efccf45b330c25b2b7ff7636365104.tar.xz pipeworks-3679943620efccf45b330c25b2b7ff7636365104.zip |
also check for group "tubedevice" (fixes injecting into one-way tube)
-rw-r--r-- | filter-injector.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/filter-injector.lua b/filter-injector.lua index 57a07e9..4870501 100644 --- a/filter-injector.lua +++ b/filter-injector.lua @@ -196,17 +196,15 @@ local function punch_filter(data, filtpos, filtnode, msg) ["technic:tool_workshop"] = "src", } + -- make sure there's something appropriate to inject the item into local todir = pipeworks.facedir_to_right_dir(filtnode.param2) local topos = vector.add(filtpos, todir) local tonode = minetest.get_node(topos) local todef = minetest.registered_nodes[tonode.name] - print("===================") - print(tonode.name) - print(minetest.get_item_group(tonode.name, "tube")) - print(minetest.get_item_group(tonode.name, "tubedevice_receiver")) if not todef or not (minetest.get_item_group(tonode.name, "tube") == 1 + or minetest.get_item_group(tonode.name, "tubedevice") == 1 or minetest.get_item_group(tonode.name, "tubedevice_receiver") == 1) then return end |