Jay Arndt
2015-03-08 011397516088882f40768a63e7f862b03bd00009
Fix detection of if the machine should call pipeworks.after_place

The tube variable in these contexts always evaluates to a true value.
data.tube is the variable that indicates if pipeworks needs to be notified.
3 files modified
6 ■■■■ changed files
technic/machines/register/battery_box.lua 2 ●●● patch | view | raw | blame | history
technic/machines/register/generator.lua 2 ●●● patch | view | raw | blame | history
technic/machines/register/machine_base.lua 2 ●●● patch | view | raw | blame | history
technic/machines/register/battery_box.lua
@@ -195,7 +195,7 @@
            allow_metadata_inventory_take = technic.machine_inventory_take,
            allow_metadata_inventory_move = technic.machine_inventory_move,
            technic_run = run,
            after_place_node = tube and pipeworks.after_place,
            after_place_node = data.tube and pipeworks.after_place,
            after_dig_node = technic.machine_after_dig_node
        })
    end
technic/machines/register/generator.lua
@@ -109,7 +109,7 @@
        allow_metadata_inventory_take = technic.machine_inventory_take,
        allow_metadata_inventory_move = technic.machine_inventory_move,
        technic_run = run,
        after_place_node = tube and pipeworks.after_place,
        after_place_node = data.tube and pipeworks.after_place,
        after_dig_node = technic.machine_after_dig_node
    })
technic/machines/register/machine_base.lua
@@ -153,7 +153,7 @@
        allow_metadata_inventory_take = technic.machine_inventory_take,
        allow_metadata_inventory_move = technic.machine_inventory_move,
        technic_run = run,
        after_place_node = tube and pipeworks.after_place,
        after_place_node = data.tube and pipeworks.after_place,
        after_dig_node = technic.machine_after_dig_node
    })