From 6290e57d8fde124647ec1cd74373217582f4ec86 Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Tue, 10 Oct 2017 22:02:35 +0300 Subject: Support for RE batteries for fuel --- init.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 7beb8ee..d3c0a36 100644 --- a/init.lua +++ b/init.lua @@ -31,6 +31,7 @@ dofile( digtron_modpath .. "/class_layout.lua" ) dofile( digtron_modpath .. "/entities.lua" ) dofile( digtron_modpath .. "/nodes/node_misc.lua" ) -- contains structure and light nodes dofile( digtron_modpath .. "/nodes/node_storage.lua" ) -- contains inventory and fuel storage nodes +dofile( digtron_modpath .. "/nodes/node_battery_holder.lua" ) -- holds rechargeable batteries from the technic mod dofile( digtron_modpath .. "/nodes/node_diggers.lua" ) -- contains all diggers dofile( digtron_modpath .. "/nodes/node_builders.lua" ) -- contains all builders (there's just one currently) dofile( digtron_modpath .. "/nodes/node_controllers.lua" ) -- controllers @@ -47,6 +48,7 @@ dofile( digtron_modpath .. "/upgrades.lua" ) -- various LBMs for upgrading older -- 4 - builder head, has a "test_build" and "execute_build" method in its definition -- 5 - fuel-holding digtron, has a "fuel" invetory that the control node can draw fuel items from. Separate from general inventory, nothing gets put here automatically. -- 6 - holds both fuel and main inventories +-- 7 - holds batteries (RE Battery from technic) to provide clean renewable power -- This code was added for use with FaceDeer's fork of the [catacomb] mod. Paramat's version doesn't support customized protected nodes, which causes -- it to "eat" Digtrons sometimes. @@ -54,6 +56,7 @@ if minetest.get_modpath("catacomb") and catacomb ~= nil and catacomb.chamber_pro local digtron_nodes = { minetest.get_content_id("digtron:inventory"), minetest.get_content_id("digtron:fuelstore"), + minetest.get_content_id("digtron:battery_holder"), minetest.get_content_id("digtron:combined_storage"), minetest.get_content_id("digtron:axle"), minetest.get_content_id("digtron:builder"), -- cgit v1.2.3