summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2014-04-26 21:07:05 +0100
committerShadowNinja <shadowninja@minetest.net>2014-04-27 14:43:00 -0400
commitf5041784212a5045538983f41e1fc73bf79277a8 (patch)
treee81b910afcca0cf9f560c0ab47b1256742dceb1c
parente748af927a0ec2b593fa3775b17bd40864ba6f60 (diff)
Fix drops for active machines
Active machine nodes need to drop their inactive counterpart. Some were missing that declaration.
-rw-r--r--technic/machines/LV/cnc.lua1
-rw-r--r--technic/machines/LV/compressor.lua1
-rw-r--r--technic/machines/LV/extractor.lua1
-rw-r--r--technic/machines/other/constructor.lua3
-rw-r--r--technic/machines/register/electric_furnace.lua1
-rw-r--r--technic/machines/register/grinder.lua1
6 files changed, 8 insertions, 0 deletions
diff --git a/technic/machines/LV/cnc.lua b/technic/machines/LV/cnc.lua
index e03e3fd..e466dad 100644
--- a/technic/machines/LV/cnc.lua
+++ b/technic/machines/LV/cnc.lua
@@ -163,6 +163,7 @@ minetest.register_node("technic:cnc_active", {
tiles = {"technic_cnc_top_active.png", "technic_cnc_bottom.png", "technic_cnc_side.png",
"technic_cnc_side.png", "technic_cnc_side.png", "technic_cnc_front_active.png"},
paramtype2 = "facedir",
+ drop = "technic:cnc",
groups = {cracky=2, not_in_creative_inventory=1},
legacy_facedir_simple = true,
can_dig = technic.machine_can_dig,
diff --git a/technic/machines/LV/compressor.lua b/technic/machines/LV/compressor.lua
index 91b2e1d..c62b516 100644
--- a/technic/machines/LV/compressor.lua
+++ b/technic/machines/LV/compressor.lua
@@ -80,6 +80,7 @@ minetest.register_node("technic:compressor_active", {
"technic_compressor_side.png", "technic_compressor_side.png",
"technic_compressor_back.png", "technic_compressor_front_active.png"},
paramtype2 = "facedir",
+ drop = "technic:compressor",
groups = {cracky=2, not_in_creative_inventory=1},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
diff --git a/technic/machines/LV/extractor.lua b/technic/machines/LV/extractor.lua
index c814d9e..6db25e4 100644
--- a/technic/machines/LV/extractor.lua
+++ b/technic/machines/LV/extractor.lua
@@ -86,6 +86,7 @@ minetest.register_node("technic:extractor_active", {
"technic_lv_grinder_side.png", "technic_lv_grinder_side.png",
"technic_lv_grinder_side.png", "technic_lv_grinder_front_active.png"},
paramtype2 = "facedir",
+ drop = "technic:extractor",
groups = {cracky=2, not_in_creative_inventory=1},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
diff --git a/technic/machines/other/constructor.lua b/technic/machines/other/constructor.lua
index 583d3c9..52feef8 100644
--- a/technic/machines/other/constructor.lua
+++ b/technic/machines/other/constructor.lua
@@ -157,6 +157,7 @@ minetest.register_node("technic:constructor_mk1_on", {
tile_images = {"technic_constructor_mk1_top_on.png","technic_constructor_mk1_bottom_on.png","technic_constructor_mk1_side2_on.png","technic_constructor_mk1_side1_on.png",
"technic_constructor_back.png","technic_constructor_front_on.png"},
paramtype2 = "facedir",
+ drop = "technic:constructor_mk1_off",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,mesecon = 2,not_in_creative_inventory=1},
mesecons= {effector={action_off=mk1_off}},
sounds = default.node_sound_stone_defaults(),
@@ -242,6 +243,7 @@ minetest.register_node("technic:constructor_mk2_on", {
"technic_constructor_back.png","technic_constructor_front_on.png"},
is_ground_content = true,
paramtype2 = "facedir",
+ drop = "technic:constructor_mk2_off",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 2, not_in_creative_inventory=1},
mesecons = {effector={action_off=mk2_off}},
sounds = default.node_sound_stone_defaults(),
@@ -351,6 +353,7 @@ minetest.register_node("technic:constructor_mk3_on", {
"technic_constructor_back.png","technic_constructor_front_on.png"},
is_ground_content = true,
paramtype2 = "facedir",
+ drop = "technic:constructor_mk3_off",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 2,not_in_creative_inventory=1},
mesecons = {effector={action_off=mk3_off}},
sounds = default.node_sound_stone_defaults(),
diff --git a/technic/machines/register/electric_furnace.lua b/technic/machines/register/electric_furnace.lua
index 262eca0..e153609 100644
--- a/technic/machines/register/electric_furnace.lua
+++ b/technic/machines/register/electric_furnace.lua
@@ -84,6 +84,7 @@ function technic.register_electric_furnace(data)
"technic_"..ltier.."_electric_furnace_side.png",
"technic_"..ltier.."_electric_furnace_front_active.png"},
paramtype2 = "facedir",
+ drop = "technic:"..ltier.."_electric_furnace",
groups = active_groups,
light_source = 8,
legacy_facedir_simple = true,
diff --git a/technic/machines/register/grinder.lua b/technic/machines/register/grinder.lua
index adc8046..02a79c3 100644
--- a/technic/machines/register/grinder.lua
+++ b/technic/machines/register/grinder.lua
@@ -76,6 +76,7 @@ function technic.register_grinder(data)
"technic_"..ltier.."_grinder_side.png", "technic_"..ltier.."_grinder_side.png",
"technic_"..ltier.."_grinder_side.png", "technic_"..ltier.."_grinder_front_active.png"},
paramtype2 = "facedir",
+ drop = "technic:"..ltier.."_grinder",
groups = active_groups,
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),