fix other machines, battery boxes, etc to work with tube routing.

This commit is contained in:
Vanessa Ezekowitz 2015-02-07 03:47:53 -05:00
parent d5db189cf4
commit bccefd6997
5 changed files with 10 additions and 0 deletions

@ -101,6 +101,8 @@ minetest.register_node("technic:tool_workshop", {
connect_sides = {left = 1, right = 1, back = 1, top = 1, bottom = 1},
},
technic_run = run,
after_place_node = pipeworks.after_place,
after_dig_node = pipeworks.after_dig
})
technic.register_machine("MV", "technic:tool_workshop", technic.receiver)

@ -90,6 +90,8 @@ minetest.register_node("technic:injector", {
allow_metadata_inventory_put = technic.machine_inventory_put,
allow_metadata_inventory_take = technic.machine_inventory_take,
allow_metadata_inventory_move = technic.machine_inventory_move,
after_place_node = pipeworks.after_place,
after_dig_node = pipeworks.after_dig
})
minetest.register_abm({

@ -195,6 +195,8 @@ function technic.register_battery_box(data)
allow_metadata_inventory_take = technic.machine_inventory_take,
allow_metadata_inventory_move = technic.machine_inventory_move,
technic_run = run,
after_place_node = (not tube) or pipeworks.after_place,
after_dig_node = (not tube) or pipeworks.after_dig
})
end

@ -109,6 +109,8 @@ function technic.register_generator(data)
allow_metadata_inventory_take = technic.machine_inventory_take,
allow_metadata_inventory_move = technic.machine_inventory_move,
technic_run = run,
after_place_node = (not tube) or pipeworks.after_place,
after_dig_node = (not tube) or pipeworks.after_dig
})
minetest.register_node("technic:"..ltier.."_generator_active", {

@ -153,6 +153,8 @@ function technic.register_base_machine(data)
allow_metadata_inventory_take = technic.machine_inventory_take,
allow_metadata_inventory_move = technic.machine_inventory_move,
technic_run = run,
after_place_node = (not tube) or pipeworks.after_place,
after_dig_node = (not tube) or pipeworks.after_dig
})
minetest.register_node("technic:"..ltier.."_"..machine_name.."_active",{