summaryrefslogtreecommitdiff
path: root/mesecons_battery
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_battery')
-rw-r--r--mesecons_battery/init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesecons_battery/init.lua b/mesecons_battery/init.lua
index b5e50a9..1218778 100644
--- a/mesecons_battery/init.lua
+++ b/mesecons_battery/init.lua
@@ -19,10 +19,9 @@ for i = 1, 5 do
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
},
- groups = {dig_immediate=2, mesecon = 2, mesecon_effector_on = 1},
+ groups = {dig_immediate=2, mesecon = 2},
description="Battery",
})
- mesecon:add_receptor_node_off("mesecons_battery:battery_charging_"..i)
end
for i = 1, 5 do
@@ -46,10 +45,11 @@ for i = 1, 5 do
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
},
- groups = {dig_immediate=2, not_in_creative_inventory=1, mesecon = 2, mesecon_effector_off = 1},
+ groups = {dig_immediate=2, not_in_creative_inventory=1, mesecon = 2},
description="Battery",
})
mesecon:add_receptor_node("mesecons_battery:battery_discharging_"..i)
+ mesecon:register_effector("mesecons_battery:battery_discharging_"..i, "mesecons_battery:battery_charging_"..i)
end
minetest.register_on_placenode(function (pos, newnode, placer)