simplify pipeworks tube detect

deMorgan's axiom, which I suck at using :P
This commit is contained in:
Vanessa Ezekowitz 2015-02-07 12:42:18 -05:00
parent cbfeb0192c
commit 5ac93cccc9
3 changed files with 6 additions and 6 deletions

@ -195,8 +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
after_place_node = tube and pipeworks.after_place,
after_dig_node = tube and pipeworks.after_dig
})
end

@ -109,8 +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
after_place_node = tube and pipeworks.after_place,
after_dig_node = tube and pipeworks.after_dig
})
minetest.register_node("technic:"..ltier.."_generator_active", {

@ -153,8 +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
after_place_node = tube and pipeworks.after_place,
after_dig_node = tube and pipeworks.after_dig
})
minetest.register_node("technic:"..ltier.."_"..machine_name.."_active",{