Drop upgrade items in the after_dig_node handler instead of can_dig

This fixes an item duplication bug triggered by using a screwdriver on an upgraded machine
This commit is contained in:
Jay Arndt
2015-03-07 05:41:31 -06:00
committed by ShadowNinja
parent c6464d3ebe
commit c8cbd261ee
5 changed files with 25 additions and 10 deletions

View File

@ -154,7 +154,7 @@ function technic.register_base_machine(data)
allow_metadata_inventory_move = technic.machine_inventory_move,
technic_run = run,
after_place_node = tube and pipeworks.after_place,
after_dig_node = tube and pipeworks.after_dig
after_dig_node = technic.machine_after_dig_node
})
minetest.register_node("technic:"..ltier.."_"..machine_name.."_active",{