various backward-compatibility aliases
authorZefram <zefram@fysh.org>
Mon, 21 Apr 2014 19:24:01 +0000 (20:24 +0100)
committerZefram <zefram@fysh.org>
Tue, 29 Apr 2014 23:26:45 +0000 (00:26 +0100)
technic/machines/MV/solar_array.lua
technic/tools/init.lua
technic_worldgen/init.lua
technic_worldgen/nodes.lua

index 4fbf12fad77973fcde3842882856d46976d46959..d939fb921b98236f3b9cd38cd67c8af134329024 100644 (file)
@@ -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")
index e1db7eda2516c774bd209c03d9b871ba1054de1a..60327a5bbabb7da79841cbb295a21a8ff75053ca 100644 (file)
@@ -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
+
index 16334ffc60f5d646cb23c2e11901d35ee9aeb071..7e80fd3f142d9866d863384deaf240f81d416a89 100644 (file)
@@ -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
index 5ecae7b9f9da257503ec5cb64bb97c6087f7df4d..07ec4af55d0eb82e1f64a858f140dd0a3ffc5b9b 100644 (file)
@@ -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")