From 9a96b525ae6fb107c7cca7fb15a20742b870b360 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 20 Mar 2017 21:39:39 +0100 Subject: [PATCH] Fix daylight sensor dig times --- mods/ITEMS/REDSTONE/mesecons_solarpanel/init.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mods/ITEMS/REDSTONE/mesecons_solarpanel/init.lua b/mods/ITEMS/REDSTONE/mesecons_solarpanel/init.lua index e2c6b242c3..2dbd494953 100644 --- a/mods/ITEMS/REDSTONE/mesecons_solarpanel/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_solarpanel/init.lua @@ -20,7 +20,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_on", { drop = "mesecons_solarpanel:solar_panel_off", description="Daylight Sensor", _doc_items_create_entry = false, - groups = {dig_immediate=3, not_in_creative_inventory = 1, material_wood=1}, + groups = {handy=1,axey=1, not_in_creative_inventory = 1, material_wood=1}, sounds = mcl_sounds.node_sound_glass_defaults(), mesecons = {receptor = { state = mesecon.state.on @@ -30,6 +30,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_on", { mesecon:receptor_off(pos) end, _mcl_blast_resistance = 1, + _mcl_hardness = 0.2, }) -- Solar Panel @@ -49,7 +50,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_off", { type = "fixed", fixed = boxes }, - groups = {dig_immediate=3, material_wood=1}, + groups = {handy=1,axey=1, material_wood=1}, description="Daylight Sensor", _doc_items_longdesc = "Daylight sensors are redstone components which provide redstone power when they are in sunlight and no power otherwise. They can also be inverted.", _doc_items_usagehelp = "Rightclick the daylight sensor to turn it into an inverted daylight sensor, which supplies redstone energy when it is in moonlight.", @@ -62,6 +63,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_off", { mesecon:receptor_on(pos) end, _mcl_blast_resistance = 1, + _mcl_hardness = 0.2, }) minetest.register_craft({ @@ -85,7 +87,6 @@ minetest.register_abm( mesecon:receptor_on(pos) end end, - _mcl_blast_resistance = 1, }) minetest.register_abm( @@ -100,7 +101,6 @@ minetest.register_abm( mesecon:receptor_off(pos) end end, - _mcl_blast_resistance = 1, }) --- Solar panel inversed @@ -123,7 +123,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_on", { fixed = boxes }, drop = "mesecons_solarpanel:solar_panel_off", - groups = {dig_immediate=3, not_in_creative_inventory = 1, material_wood=1}, + groups = {handy=1,axey=1, not_in_creative_inventory = 1, material_wood=1}, description="Inverted Daylight Sensor", _doc_items_create_entry = false, sounds = mcl_sounds.node_sound_glass_defaults(), @@ -135,6 +135,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_on", { mesecon:receptor_off(pos) end, _mcl_blast_resistance = 1, + _mcl_hardness = 0.2, }) -- Solar Panel @@ -155,7 +156,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_off", { fixed = boxes }, drop = "mesecons_solarpanel:solar_panel_off", - groups = {dig_immediate=3, not_in_creative_inventory=1, material_wood=1}, + groups = {handy=1,axey=1, not_in_creative_inventory=1, material_wood=1}, description="Inverted Daylight Sensor", _doc_items_longdesc = "An inverted daylight sensor is a variant of the daylight sensor. It is a redstone component which provides redstone power when it in moonlight and no power otherwise. It can turned back into an ordinary daylight sensor.", _doc_items_usagehelp = "Rightclick the daylight sensor to turn it into a daylight sensor.", @@ -168,6 +169,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_off", { mesecon:receptor_on(pos) end, _mcl_blast_resistance = 1, + _mcl_hardness = 0.2, }) minetest.register_abm(