Fix drops for active machines
authorZefram <zefram@fysh.org>
Sat, 26 Apr 2014 20:07:05 +0000 (21:07 +0100)
committerShadowNinja <shadowninja@minetest.net>
Sun, 27 Apr 2014 18:43:00 +0000 (14:43 -0400)
Active machine nodes need to drop their inactive counterpart.  Some were
missing that declaration.

technic/machines/LV/cnc.lua
technic/machines/LV/compressor.lua
technic/machines/LV/extractor.lua
technic/machines/other/constructor.lua
technic/machines/register/electric_furnace.lua
technic/machines/register/grinder.lua

index e03e3fda20956d252cc4ac48223bd2f94d3d353b..e466dad17a6c777fa2845b9260de18120fe7138d 100644 (file)
@@ -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,
index 91b2e1ddd1ce313007b82b6a413468934d4dc3f6..c62b516dbe10cfc30a548abd647f02b66306c446 100644 (file)
@@ -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(),
index c814d9e3facbb3646fb29b074256653cd6f131d2..6db25e455a05ee35af8b2a5eeb3865ddcc879bb6 100644 (file)
@@ -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(),
index 583d3c9498c26623feaaee3ecad3b2274f6384b8..52feef8b0a58c7207b35bddba07d64453642b0a7 100644 (file)
@@ -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(),
index 262eca0cfe28320777361c54c8d7d2bc344cee3e..e153609eeeef33c359f41bee9ccc658b41a8e385 100644 (file)
@@ -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,
index adc8046633c4faee19b54d65e6fd42d22086ab09..02a79c3eb15faaa7aa30124e95eeee05d7fca39a 100644 (file)
@@ -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(),