From: Zefram Date: Mon, 21 Apr 2014 19:24:01 +0000 (+0100) Subject: various backward-compatibility aliases X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=0294fc8f3a9772ab292c7e40d489e760b666516e;p=zefram%2Fminetest%2Ftechnic.git various backward-compatibility aliases --- diff --git a/technic/machines/MV/solar_array.lua b/technic/machines/MV/solar_array.lua index 4fbf12f..d939fb9 100644 --- a/technic/machines/MV/solar_array.lua +++ b/technic/machines/MV/solar_array.lua @@ -10,3 +10,5 @@ minetest.register_craft({ technic.register_solar_array({tier="MV", power=30}) +-- compatibility alias for upgrading from old versions of technic +minetest.register_alias("technic:solar_panel_mv", "technic:solar_array_mv") diff --git a/technic/tools/init.lua b/technic/tools/init.lua index e1db7ed..60327a5 100644 --- a/technic/tools/init.lua +++ b/technic/tools/init.lua @@ -14,3 +14,8 @@ dofile(path.."/chainsaw.lua") dofile(path.."/tree_tap.lua") dofile(path.."/sonic_screwdriver.lua") +if minetest.get_modpath("screwdriver") then + -- compatibility alias + minetest.register_alias("technic:screwdriver", "screwdriver:screwdriver") +end + diff --git a/technic_worldgen/init.lua b/technic_worldgen/init.lua index 16334ff..7e80fd3 100644 --- a/technic_worldgen/init.lua +++ b/technic_worldgen/init.lua @@ -14,6 +14,10 @@ dofile(modpath.."/crafts.lua") -- Rubber trees, moretrees also supplies these if not minetest.get_modpath("moretrees") then dofile(modpath.."/rubber.lua") +else + -- older versions of technic provided rubber trees regardless + minetest.register_alias("technic:rubber_sapling", "moretrees:rubber_tree_sapling") + minetest.register_alias("technic:rubber_tree_empty", "moretrees:rubber_tree_trunk_empty") end -- mg suppport diff --git a/technic_worldgen/nodes.lua b/technic_worldgen/nodes.lua index 5ecae7b..07ec4af 100644 --- a/technic_worldgen/nodes.lua +++ b/technic_worldgen/nodes.lua @@ -101,4 +101,6 @@ minetest.register_craft({ }) minetest.register_alias("technic:diamond_block", "default:diamondblock") +minetest.register_alias("technic:diamond", "default:diamond") +minetest.register_alias("technic:mineral_diamond", "default:stone_with_diamond")