summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRealBadAngel <mk@realbadangel.pl>2013-07-22 23:38:39 -0700
committerRealBadAngel <mk@realbadangel.pl>2013-07-22 23:38:39 -0700
commite38f6f0983feb5725feab8f966d2385b7c7ae23d (patch)
treef7388204026ef79f61033304214a55a1bc9086dc
parentb7649c75fc6bc2618db6944d6cc74ce419e4c57c (diff)
parent2e4d983be7592af81b49f95895acf064b8ec38a2 (diff)
Merge pull request #62 from hdastwb/connect_sides
add tube routing support
-rw-r--r--technic/machines/mv/alloy_furnace.lua2
-rw-r--r--technic/machines/mv/electric_furnace.lua2
-rw-r--r--technic/machines/mv/grinder.lua2
-rw-r--r--technic_chests/chest_commons.lua6
4 files changed, 10 insertions, 2 deletions
diff --git a/technic/machines/mv/alloy_furnace.lua b/technic/machines/mv/alloy_furnace.lua
index cadcb67..b7a837f 100644
--- a/technic/machines/mv/alloy_furnace.lua
+++ b/technic/machines/mv/alloy_furnace.lua
@@ -36,6 +36,7 @@ minetest.register_node(
local inv=meta:get_inventory()
return inv:room_for_item("src",stack)
end,
+ connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
},
legacy_facedir_simple = true,
sounds = default.node_sound_stone_defaults(),
@@ -82,6 +83,7 @@ minetest.register_node(
local inv=meta:get_inventory()
return inv:room_for_item("src",stack)
end,
+ connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
},
legacy_facedir_simple = true,
sounds = default.node_sound_stone_defaults(),
diff --git a/technic/machines/mv/electric_furnace.lua b/technic/machines/mv/electric_furnace.lua
index 7f205b5..a125d4b 100644
--- a/technic/machines/mv/electric_furnace.lua
+++ b/technic/machines/mv/electric_furnace.lua
@@ -41,6 +41,7 @@ minetest.register_node(
local inv=meta:get_inventory()
return inv:room_for_item("src",stack)
end,
+ connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
},
legacy_facedir_simple = true,
sounds = default.node_sound_stone_defaults(),
@@ -87,6 +88,7 @@ minetest.register_node(
local inv=meta:get_inventory()
return inv:room_for_item("src",stack)
end,
+ connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
},
legacy_facedir_simple = true,
sounds = default.node_sound_stone_defaults(),
diff --git a/technic/machines/mv/grinder.lua b/technic/machines/mv/grinder.lua
index a8ba7ac..e993794 100644
--- a/technic/machines/mv/grinder.lua
+++ b/technic/machines/mv/grinder.lua
@@ -41,6 +41,7 @@ minetest.register_node(
local inv=meta:get_inventory()
return inv:room_for_item("src",stack)
end,
+ connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
@@ -86,6 +87,7 @@ minetest.register_node(
local inv=meta:get_inventory()
return inv:room_for_item("src",stack)
end,
+ connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
diff --git a/technic_chests/chest_commons.lua b/technic_chests/chest_commons.lua
index 7786496..e6438bf 100644
--- a/technic_chests/chest_commons.lua
+++ b/technic_chests/chest_commons.lua
@@ -11,8 +11,10 @@ tubes_properties = {insert_object=function(pos,node,stack,direction)
local inv=meta:get_inventory()
return inv:room_for_item("main",stack)
end,
- input_inventory="main"}
-
+ input_inventory="main",
+ connect_sides = {left=1, right=1, front=1, back=1, top=1, bottom=1},
+}
+
chest_can_dig = function(pos,player)
local meta = minetest.env:get_meta(pos);
local inv = meta:get_inventory()