Remove useless callbacks

This commit is contained in:
Novatux 2014-08-14 21:24:20 +02:00
parent d4e14bc891
commit 15db1d23cc

View File

@ -33,12 +33,6 @@ minetest.override_item("default:furnace", {
input_inventory = "dst",
connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1}
},
after_place_node = function(pos)
pipeworks.scan_for_tube_objects(pos)
end,
after_dig_node = function(pos)
pipeworks.scan_for_tube_objects(pos)
end
})
minetest.override_item("default:furnace_active", {
@ -82,12 +76,6 @@ minetest.override_item("default:furnace_active", {
input_inventory = "dst",
connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1}
},
after_place_node= function(pos)
pipeworks.scan_for_tube_objects(pos)
end,
after_dig_node = function(pos)
pipeworks.scan_for_tube_objects(pos)
end
})
minetest.override_item("default:chest", {
@ -114,16 +102,8 @@ minetest.override_item("default:chest", {
input_inventory = "main",
connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1}
},
after_place_node = function(pos)
pipeworks.scan_for_tube_objects(pos)
end,
after_dig_node = function(pos)
pipeworks.scan_for_tube_objects(pos)
end
})
local old_locked_chest_after_place = minetest.registered_nodes["default:chest_locked"].after_place_node
minetest.override_item("default:chest_locked", {
tiles = {
"default_chest_top.png^pipeworks_tube_connection_wooden.png",
@ -147,11 +127,4 @@ minetest.override_item("default:chest_locked", {
end,
connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1}
},
after_place_node = function(pos, placer)
pipeworks.scan_for_tube_objects(pos)
old_locked_chest_after_place(pos, placer)
end,
after_dig_node = function(pos)
pipeworks.scan_for_tube_objects(pos)
end
})