From 46712562246a12e3e84c95e08f5386ebad33ca17 Mon Sep 17 00:00:00 2001 From: rnd1 Date: Fri, 29 Dec 2017 13:09:27 +0100 Subject: [PATCH] compatibility: old batteries -> new battery, constructor battery recipe fix --- README | 2 +- constructor.lua | 2 +- init.lua | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README b/README index cd821e9..c46ca2a 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ BASIC_MACHINES: lightweight automation mod for minetest minetest 0.4.14+ (c) 2015-2016 rnd -textures by rnd, new textures by by SaKeL (2016) and Jozet (2017) +textures by rnd, new textures by SaKeL (2016) and Jozet (2017) MANUAL: diff --git a/constructor.lua b/constructor.lua index 7afa7ac..b9d059c 100644 --- a/constructor.lua +++ b/constructor.lua @@ -19,7 +19,7 @@ basic_machines.craft_recipes = { ["ball_spawner"]={item = "basic_machines:ball_spawner", description = "Spawn moving energy balls", craft = {"basic_machines:power_cell","basic_machines:keypad"}, tex = "basic_machines_ball"}, -["battery"]={item = "basic_machines:battery", description = "Power for machines", craft = {"default:bronzeblock 2","default:mese","default:diamond"}, tex = "basic_machine_battery"}, +["battery"]={item = "basic_machines:battery_0", description = "Power for machines", craft = {"default:bronzeblock 2","default:mese","default:diamond"}, tex = "basic_machine_battery"}, ["generator"]={item = "basic_machines:generator", description = "Generate power crystals", craft = {"default:diamondblock 5","basic_machines:battery 5","default:goldblock 5"}, tex = "basic_machine_generator"}, diff --git a/init.lua b/init.lua index 8a86a7f..edad2dd 100644 --- a/init.lua +++ b/init.lua @@ -83,4 +83,8 @@ minetest.register_craft({ } }) +-- COMPATIBILITY +minetest.register_alias("basic_machines:battery", "basic_machines:battery_0") + + print("[MOD] basic_machines " .. basic_machines.version .. " loaded.") \ No newline at end of file