From ed3aa1e88a7c1780278abca626d8d8be138dbefe Mon Sep 17 00:00:00 2001 From: Craig Davison Date: Sat, 1 Aug 2015 14:08:48 +0100 Subject: [PATCH] Replace LIGHT_MAX with default.LIGHT_MAX --- building_blocks/init.lua | 2 +- homedecor/electronics.lua | 2 +- homedecor/lighting.lua | 30 +++++++++++++++--------------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/building_blocks/init.lua b/building_blocks/init.lua index e06b837..e160349 100644 --- a/building_blocks/init.lua +++ b/building_blocks/init.lua @@ -163,7 +163,7 @@ minetest.register_node("building_blocks:Fireplace", { }, paramtype = "light", paramtype2 = "facedir", - light_source = LIGHT_MAX, + light_source = default.LIGHT_MAX, sunlight_propagates = true, is_ground_content = true, groups = {cracky=2}, diff --git a/homedecor/electronics.lua b/homedecor/electronics.lua index 99a1e1e..18bf62f 100644 --- a/homedecor/electronics.lua +++ b/homedecor/electronics.lua @@ -94,7 +94,7 @@ homedecor.register("television", { } } }, - light_source = LIGHT_MAX - 1, + light_source = default.LIGHT_MAX - 1, groups = { snappy = 3 }, sounds = default.node_sound_wood_defaults(), }) diff --git a/homedecor/lighting.lua b/homedecor/lighting.lua index 440e8b7..f0c3b9d 100644 --- a/homedecor/lighting.lua +++ b/homedecor/lighting.lua @@ -81,7 +81,7 @@ homedecor.register("glowlight_half_"..color, { selection_box = glowlight_nodebox.half, node_box = glowlight_nodebox.half, groups = { snappy = 3 }, - light_source = LIGHT_MAX, + light_source = default.LIGHT_MAX, sounds = default.node_sound_glass_defaults(), on_place = minetest.rotate_node }) @@ -99,7 +99,7 @@ homedecor.register("glowlight_quarter_"..color, { selection_box = glowlight_nodebox.quarter, node_box = glowlight_nodebox.quarter, groups = { snappy = 3 }, - light_source = LIGHT_MAX-1, + light_source = default.LIGHT_MAX-1, sounds = default.node_sound_glass_defaults(), on_place = minetest.rotate_node }) @@ -119,7 +119,7 @@ homedecor.register("glowlight_small_cube_"..color, { selection_box = glowlight_nodebox.small_cube, node_box = glowlight_nodebox.small_cube, groups = { snappy = 3 }, - light_source = LIGHT_MAX-1, + light_source = default.LIGHT_MAX-1, sounds = default.node_sound_glass_defaults(), on_place = minetest.rotate_node }) @@ -137,7 +137,7 @@ homedecor.register("plasma_lamp", { } }, use_texture_alpha = true, - light_source = LIGHT_MAX - 1, + light_source = default.LIGHT_MAX - 1, sunlight_propagates = true, groups = {cracky=3,oddly_breakable_by_hand=3}, sounds = default.node_sound_glass_defaults(), @@ -164,7 +164,7 @@ homedecor.register("plasma_ball", { }, walkable = false, use_texture_alpha = true, - light_source = LIGHT_MAX - 5, + light_source = default.LIGHT_MAX - 5, sunlight_propagates = true, groups = {cracky=3,oddly_breakable_by_hand=3}, sounds = default.node_sound_glass_defaults(), @@ -188,7 +188,7 @@ homedecor.register("candle", { selection_box = tc_cbox, walkable = false, groups = { snappy = 3 }, - light_source = LIGHT_MAX-4, + light_source = default.LIGHT_MAX-4, }) local c_cbox = { @@ -209,7 +209,7 @@ homedecor.register("candle_thin", { selection_box = c_cbox, walkable = false, groups = { snappy = 3 }, - light_source = LIGHT_MAX-4, + light_source = default.LIGHT_MAX-4, }) local cs_cbox = { @@ -231,7 +231,7 @@ homedecor.register("candlestick_wrought_iron", { selection_box = cs_cbox, walkable = false, groups = { snappy = 3 }, - light_source = LIGHT_MAX-4, + light_source = default.LIGHT_MAX-4, }) homedecor.register("candlestick_brass", { @@ -246,7 +246,7 @@ homedecor.register("candlestick_brass", { selection_box = cs_cbox, walkable = false, groups = { snappy = 3 }, - light_source = LIGHT_MAX-4, + light_source = default.LIGHT_MAX-4, }) homedecor.register("wall_sconce", { @@ -265,7 +265,7 @@ homedecor.register("wall_sconce", { }, walkable = false, groups = { snappy = 3 }, - light_source = LIGHT_MAX-4, + light_source = default.LIGHT_MAX-4, }) local ol_cbox = { @@ -291,7 +291,7 @@ homedecor.register("oil_lamp", { selection_box = ol_cbox, walkable = false, groups = { snappy = 3 }, - light_source = LIGHT_MAX-3, + light_source = default.LIGHT_MAX-3, sounds = default.node_sound_glass_defaults(), }) @@ -303,7 +303,7 @@ homedecor.register("oil_lamp_tabletop", { selection_box = ol_cbox, collision_box = ol_cbox, groups = { snappy = 3 }, - light_source = LIGHT_MAX-3, + light_source = default.LIGHT_MAX-3, sounds = default.node_sound_glass_defaults(), }) @@ -367,7 +367,7 @@ homedecor.register("lattice_lantern_large", { description = S("Lattice lantern (large)"), tiles = { 'homedecor_lattice_lantern_large.png' }, groups = { snappy = 3 }, - light_source = LIGHT_MAX, + light_source = default.LIGHT_MAX, sounds = default.node_sound_glass_defaults(), }) @@ -387,7 +387,7 @@ homedecor.register("lattice_lantern_small", { fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } }, groups = { snappy = 3 }, - light_source = LIGHT_MAX-1, + light_source = default.LIGHT_MAX-1, sounds = default.node_sound_glass_defaults(), on_place = minetest.rotate_node }) @@ -535,7 +535,7 @@ homedecor.register("ceiling_lamp", { "homedecor_generic_plastic_black.png^[colorize:#442d04:200", }, inventory_image = "homedecor_ceiling_lamp_inv.png", - light_source = LIGHT_MAX, + light_source = default.LIGHT_MAX, groups = {snappy=3}, walkable = false, on_punch = function(pos, node, puncher)