diff options
author | Jay Arndt <jayarn27182@windstream.net> | 2015-03-07 19:45:57 -0600 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2015-03-07 21:44:42 -0500 |
commit | 011397516088882f40768a63e7f862b03bd00009 (patch) | |
tree | 7dbeec9293a9de0805e3fca72da5d48761a026b7 | |
parent | c8cbd261ee75b093d5ccb0d00e90e28dabe0914e (diff) |
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.
-rw-r--r-- | technic/machines/register/battery_box.lua | 2 | ||||
-rw-r--r-- | technic/machines/register/generator.lua | 2 | ||||
-rw-r--r-- | technic/machines/register/machine_base.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/technic/machines/register/battery_box.lua b/technic/machines/register/battery_box.lua index 412f5ba..263b647 100644 --- a/technic/machines/register/battery_box.lua +++ b/technic/machines/register/battery_box.lua @@ -195,7 +195,7 @@ 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 = tube and pipeworks.after_place, + after_place_node = data.tube and pipeworks.after_place, after_dig_node = technic.machine_after_dig_node }) end diff --git a/technic/machines/register/generator.lua b/technic/machines/register/generator.lua index aa367ca..300b852 100644 --- a/technic/machines/register/generator.lua +++ b/technic/machines/register/generator.lua @@ -109,7 +109,7 @@ 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 = tube and pipeworks.after_place, + after_place_node = data.tube and pipeworks.after_place, after_dig_node = technic.machine_after_dig_node }) diff --git a/technic/machines/register/machine_base.lua b/technic/machines/register/machine_base.lua index 0f47c22..8492643 100644 --- a/technic/machines/register/machine_base.lua +++ b/technic/machines/register/machine_base.lua @@ -153,7 +153,7 @@ 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 = tube and pipeworks.after_place, + after_place_node = data.tube and pipeworks.after_place, after_dig_node = technic.machine_after_dig_node }) |