From 4ae7bc9aa621561c0367ed9efe1158d7fd5c69ea Mon Sep 17 00:00:00 2001 From: Jeija Date: Fri, 7 Sep 2012 15:59:49 +0200 Subject: [PATCH] Use sunlight_propagates = true for some more nodes --- mesecons/wires.lua | 2 ++ mesecons_button/init.lua | 2 ++ mesecons_insulated/init.lua | 4 ++-- mesecons_receiver/init.lua | 2 ++ mesecons_walllever/init.lua | 2 ++ 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mesecons/wires.lua b/mesecons/wires.lua index 3163495..bda872f 100644 --- a/mesecons/wires.lua +++ b/mesecons/wires.lua @@ -141,6 +141,7 @@ for zmy=0, 1 do wield_image = "jeija_mesecon_off.png", paramtype = "light", paramtype2 = "facedir", + sunlight_propagates = true, selection_box = { type = "fixed", fixed = {-.5, -.5, -.5, .5, -.5+1/16, .5} @@ -161,6 +162,7 @@ for zmy=0, 1 do tiles = tiles_on, paramtype = "light", paramtype2 = "facedir", + sunlight_propagates = true, selection_box = { type = "fixed", fixed = {-.5, -.5, -.5, .5, -.5+1/16, .5} diff --git a/mesecons_button/init.lua b/mesecons_button/init.lua index 017f26c..dd8819d 100644 --- a/mesecons_button/init.lua +++ b/mesecons_button/init.lua @@ -13,6 +13,7 @@ minetest.register_node("mesecons_button:button_off", { paramtype2 = "facedir", legacy_wallmounted = true, walkable = false, + sunlight_propagates = true, selection_box = { type = "fixed", fixed = { -6/16, -6/16, 5/16, 6/16, 6/16, 8/16 } @@ -42,6 +43,7 @@ minetest.register_node("mesecons_button:button_on", { legacy_wallmounted = true, walkable = false, light_source = LIGHT_MAX-7, + sunlight_propagates = true, selection_box = { type = "fixed", fixed = { -6/16, -6/16, 5/16, 6/16, 6/16, 8/16 } diff --git a/mesecons_insulated/init.lua b/mesecons_insulated/init.lua index bcdbd6c..5b48716 100644 --- a/mesecons_insulated/init.lua +++ b/mesecons_insulated/init.lua @@ -12,7 +12,7 @@ minetest.register_node("mesecons_insulated:insulated_on", { paramtype = "light", paramtype2 = "facedir", walkable = false, - stack_max = 99, + sunlight_propagates = true, selection_box = { type = "fixed", fixed = { -16/32-0.001, -18/32, -7/32, 16/32+0.001, -12/32, 7/32 } @@ -40,7 +40,7 @@ minetest.register_node("mesecons_insulated:insulated_off", { paramtype = "light", paramtype2 = "facedir", walkable = false, - stack_max = 99, + sunlight_propagates = true, selection_box = { type = "fixed", fixed = { -16/32-0.001, -18/32, -7/32, 16/32+0.001, -12/32, 7/32 } diff --git a/mesecons_receiver/init.lua b/mesecons_receiver/init.lua index 8b5e934..c364682 100644 --- a/mesecons_receiver/init.lua +++ b/mesecons_receiver/init.lua @@ -17,6 +17,7 @@ minetest.register_node("mesecons_receiver:receiver_on", { }, paramtype = "light", paramtype2 = "facedir", + sunlight_propagates = true, selection_box = { type = "fixed", fixed = { -3/16, -8/16, -8/16, 3/16, 3/16, 8/16 } @@ -43,6 +44,7 @@ minetest.register_node("mesecons_receiver:receiver_off", { }, paramtype = "light", paramtype2 = "facedir", + sunlight_propagates = true, selection_box = { type = "fixed", fixed = { -3/16, -8/16, -8/16, 3/16, 3/16, 8/16 } diff --git a/mesecons_walllever/init.lua b/mesecons_walllever/init.lua index 6feb499..87c036b 100644 --- a/mesecons_walllever/init.lua +++ b/mesecons_walllever/init.lua @@ -13,6 +13,7 @@ minetest.register_node("mesecons_walllever:wall_lever_off", { wield_image = "jeija_wall_lever_off.png", paramtype = "light", paramtype2 = "facedir", + sunlight_propagates = true, walkable = false, selection_box = { type = "fixed", @@ -42,6 +43,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", { inventory_image = "jeija_wall_lever_on.png", paramtype = "light", paramtype2 = "facedir", + sunlight_propagates = true, walkable = false, light_source = LIGHT_MAX-7, selection_box = {