mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-25 10:20:24 +01:00
Special-case technic machines
This makes them work correctly with filters.
This commit is contained in:
parent
cdbe93cdd8
commit
acf7ee4a80
@ -175,6 +175,23 @@ local function punch_filter(data, filtpos, filtnode, msg)
|
|||||||
local fromdef = minetest.registered_nodes[fromnode.name]
|
local fromdef = minetest.registered_nodes[fromnode.name]
|
||||||
if not fromdef then return end
|
if not fromdef then return end
|
||||||
local fromtube = fromdef.tube
|
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
|
if not (fromtube and fromtube.input_inventory) then return end
|
||||||
|
|
||||||
local slotseq_mode
|
local slotseq_mode
|
||||||
|
Loading…
Reference in New Issue
Block a user