diff options
author | Novatux <nathanael.courant@laposte.net> | 2013-01-20 07:57:58 +0100 |
---|---|---|
committer | Novatux <nathanael.courant@laposte.net> | 2013-01-20 07:57:58 +0100 |
commit | 47597910344754199f1400d57262ebaf1e705411 (patch) | |
tree | d8ef1771360846029d81c47b716104a920ef6bf1 /compat.lua | |
parent | 5edb7a61a3b7e9ab19146b6e76592b86bb79f5f2 (diff) |
Added chests and furnaces autoconnect to tubes.
Fixed a bug where autocrafter could bbe used to clone items.
Removed test code.
Diffstat (limited to 'compat.lua')
-rw-r--r-- | compat.lua | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -57,6 +57,12 @@ minetest.register_node(":default:furnace", { end return true end, + after_place_node = function(pos) + tube_scanforobjects(pos) + end, + after_dig_node = function(pos) + tube_scanforobjects(pos) + end }) minetest.register_node(":default:furnace_active", { @@ -111,6 +117,12 @@ minetest.register_node(":default:furnace_active", { end return true end, + after_place_node = function(pos) + tube_scanforobjects(pos) + end, + after_dig_node = function(pos) + tube_scanforobjects(pos) + end }) minetest.register_node(":default:chest", { @@ -159,4 +171,10 @@ minetest.register_node(":default:chest", { minetest.log("action", player:get_player_name().. " takes stuff from chest at "..minetest.pos_to_string(pos)) end, + after_place_node = function(pos) + tube_scanforobjects(pos) + end, + after_dig_node = function(pos) + tube_scanforobjects(pos) + end }) |