forked from minetest-mods/technic
simplify pipeworks tube detect
deMorgan's axiom, which I suck at using :P
This commit is contained in:
parent
cbfeb0192c
commit
5ac93cccc9
|
@ -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",{
|
||||
|
|
Loading…
Reference in New Issue
Block a user