forked from mtcontrib/homedecor_modpack
		
	Replace LIGHT_MAX with default.LIGHT_MAX
This commit is contained in:
		
				
					committed by
					
						 Vanessa Ezekowitz
						Vanessa Ezekowitz
					
				
			
			
				
	
			
			
			
						parent
						
							ade26437ee
						
					
				
				
					commit
					ed3aa1e88a
				
			| @@ -163,7 +163,7 @@ minetest.register_node("building_blocks:Fireplace", { | |||||||
| 	}, | 	}, | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| 	paramtype2 = "facedir", | 	paramtype2 = "facedir", | ||||||
| 	light_source = LIGHT_MAX, | 	light_source = default.LIGHT_MAX, | ||||||
| 	sunlight_propagates = true, | 	sunlight_propagates = true, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {cracky=2}, | 	groups = {cracky=2}, | ||||||
|   | |||||||
| @@ -94,7 +94,7 @@ homedecor.register("television", { | |||||||
| 			  } | 			  } | ||||||
| 		   } | 		   } | ||||||
| 	}, | 	}, | ||||||
| 	light_source = LIGHT_MAX - 1, | 	light_source = default.LIGHT_MAX - 1, | ||||||
| 	groups = { snappy = 3 }, | 	groups = { snappy = 3 }, | ||||||
| 	sounds = default.node_sound_wood_defaults(), | 	sounds = default.node_sound_wood_defaults(), | ||||||
| }) | }) | ||||||
|   | |||||||
| @@ -81,7 +81,7 @@ homedecor.register("glowlight_half_"..color, { | |||||||
| 	selection_box = glowlight_nodebox.half, | 	selection_box = glowlight_nodebox.half, | ||||||
| 	node_box = glowlight_nodebox.half, | 	node_box = glowlight_nodebox.half, | ||||||
| 	groups = { snappy = 3 }, | 	groups = { snappy = 3 }, | ||||||
| 	light_source = LIGHT_MAX, | 	light_source = default.LIGHT_MAX, | ||||||
| 	sounds = default.node_sound_glass_defaults(), | 	sounds = default.node_sound_glass_defaults(), | ||||||
| 	on_place = minetest.rotate_node | 	on_place = minetest.rotate_node | ||||||
| }) | }) | ||||||
| @@ -99,7 +99,7 @@ homedecor.register("glowlight_quarter_"..color, { | |||||||
| 	selection_box = glowlight_nodebox.quarter, | 	selection_box = glowlight_nodebox.quarter, | ||||||
| 	node_box = glowlight_nodebox.quarter, | 	node_box = glowlight_nodebox.quarter, | ||||||
| 	groups = { snappy = 3 }, | 	groups = { snappy = 3 }, | ||||||
| 	light_source = LIGHT_MAX-1, | 	light_source = default.LIGHT_MAX-1, | ||||||
| 	sounds = default.node_sound_glass_defaults(), | 	sounds = default.node_sound_glass_defaults(), | ||||||
| 	on_place = minetest.rotate_node | 	on_place = minetest.rotate_node | ||||||
| }) | }) | ||||||
| @@ -119,7 +119,7 @@ homedecor.register("glowlight_small_cube_"..color, { | |||||||
| 	selection_box = glowlight_nodebox.small_cube, | 	selection_box = glowlight_nodebox.small_cube, | ||||||
| 	node_box = glowlight_nodebox.small_cube, | 	node_box = glowlight_nodebox.small_cube, | ||||||
| 	groups = { snappy = 3 }, | 	groups = { snappy = 3 }, | ||||||
| 	light_source = LIGHT_MAX-1, | 	light_source = default.LIGHT_MAX-1, | ||||||
| 	sounds = default.node_sound_glass_defaults(), | 	sounds = default.node_sound_glass_defaults(), | ||||||
| 	on_place = minetest.rotate_node | 	on_place = minetest.rotate_node | ||||||
| }) | }) | ||||||
| @@ -137,7 +137,7 @@ homedecor.register("plasma_lamp", { | |||||||
| 		} | 		} | ||||||
| 	}, | 	}, | ||||||
| 	use_texture_alpha = true, | 	use_texture_alpha = true, | ||||||
| 	light_source = LIGHT_MAX - 1, | 	light_source = default.LIGHT_MAX - 1, | ||||||
| 	sunlight_propagates = true, | 	sunlight_propagates = true, | ||||||
| 	groups = {cracky=3,oddly_breakable_by_hand=3}, | 	groups = {cracky=3,oddly_breakable_by_hand=3}, | ||||||
| 	sounds = default.node_sound_glass_defaults(), | 	sounds = default.node_sound_glass_defaults(), | ||||||
| @@ -164,7 +164,7 @@ homedecor.register("plasma_ball", { | |||||||
| 	}, | 	}, | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	use_texture_alpha = true, | 	use_texture_alpha = true, | ||||||
| 	light_source = LIGHT_MAX - 5, | 	light_source = default.LIGHT_MAX - 5, | ||||||
| 	sunlight_propagates = true, | 	sunlight_propagates = true, | ||||||
| 	groups = {cracky=3,oddly_breakable_by_hand=3}, | 	groups = {cracky=3,oddly_breakable_by_hand=3}, | ||||||
| 	sounds = default.node_sound_glass_defaults(), | 	sounds = default.node_sound_glass_defaults(), | ||||||
| @@ -188,7 +188,7 @@ homedecor.register("candle", { | |||||||
| 	selection_box = tc_cbox, | 	selection_box = tc_cbox, | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	groups = { snappy = 3 }, | 	groups = { snappy = 3 }, | ||||||
| 	light_source = LIGHT_MAX-4, | 	light_source = default.LIGHT_MAX-4, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| local c_cbox = { | local c_cbox = { | ||||||
| @@ -209,7 +209,7 @@ homedecor.register("candle_thin", { | |||||||
| 	selection_box = c_cbox, | 	selection_box = c_cbox, | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	groups = { snappy = 3 }, | 	groups = { snappy = 3 }, | ||||||
| 	light_source = LIGHT_MAX-4, | 	light_source = default.LIGHT_MAX-4, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| local cs_cbox = { | local cs_cbox = { | ||||||
| @@ -231,7 +231,7 @@ homedecor.register("candlestick_wrought_iron", { | |||||||
| 	selection_box = cs_cbox, | 	selection_box = cs_cbox, | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	groups = { snappy = 3 }, | 	groups = { snappy = 3 }, | ||||||
| 	light_source = LIGHT_MAX-4, | 	light_source = default.LIGHT_MAX-4, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| homedecor.register("candlestick_brass", { | homedecor.register("candlestick_brass", { | ||||||
| @@ -246,7 +246,7 @@ homedecor.register("candlestick_brass", { | |||||||
| 	selection_box = cs_cbox, | 	selection_box = cs_cbox, | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	groups = { snappy = 3 }, | 	groups = { snappy = 3 }, | ||||||
| 	light_source = LIGHT_MAX-4, | 	light_source = default.LIGHT_MAX-4, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| homedecor.register("wall_sconce", { | homedecor.register("wall_sconce", { | ||||||
| @@ -265,7 +265,7 @@ homedecor.register("wall_sconce", { | |||||||
| 	}, | 	}, | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	groups = { snappy = 3 }, | 	groups = { snappy = 3 }, | ||||||
| 	light_source = LIGHT_MAX-4, | 	light_source = default.LIGHT_MAX-4, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| local ol_cbox = { | local ol_cbox = { | ||||||
| @@ -291,7 +291,7 @@ homedecor.register("oil_lamp", { | |||||||
| 	selection_box = ol_cbox, | 	selection_box = ol_cbox, | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	groups = { snappy = 3 }, | 	groups = { snappy = 3 }, | ||||||
| 	light_source = LIGHT_MAX-3, | 	light_source = default.LIGHT_MAX-3, | ||||||
| 	sounds = default.node_sound_glass_defaults(), | 	sounds = default.node_sound_glass_defaults(), | ||||||
| }) | }) | ||||||
|  |  | ||||||
| @@ -303,7 +303,7 @@ homedecor.register("oil_lamp_tabletop", { | |||||||
| 	selection_box = ol_cbox, | 	selection_box = ol_cbox, | ||||||
| 	collision_box = ol_cbox, | 	collision_box = ol_cbox, | ||||||
| 	groups = { snappy = 3 }, | 	groups = { snappy = 3 }, | ||||||
| 	light_source = LIGHT_MAX-3, | 	light_source = default.LIGHT_MAX-3, | ||||||
| 	sounds = default.node_sound_glass_defaults(), | 	sounds = default.node_sound_glass_defaults(), | ||||||
| }) | }) | ||||||
|  |  | ||||||
| @@ -367,7 +367,7 @@ homedecor.register("lattice_lantern_large", { | |||||||
| 	description = S("Lattice lantern (large)"), | 	description = S("Lattice lantern (large)"), | ||||||
| 	tiles = { 'homedecor_lattice_lantern_large.png' }, | 	tiles = { 'homedecor_lattice_lantern_large.png' }, | ||||||
| 	groups = { snappy = 3 }, | 	groups = { snappy = 3 }, | ||||||
| 	light_source = LIGHT_MAX, | 	light_source = default.LIGHT_MAX, | ||||||
| 	sounds = default.node_sound_glass_defaults(), | 	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 } | 		fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } | ||||||
| 	}, | 	}, | ||||||
| 	groups = { snappy = 3 }, | 	groups = { snappy = 3 }, | ||||||
| 	light_source = LIGHT_MAX-1, | 	light_source = default.LIGHT_MAX-1, | ||||||
| 	sounds = default.node_sound_glass_defaults(), | 	sounds = default.node_sound_glass_defaults(), | ||||||
| 	on_place = minetest.rotate_node | 	on_place = minetest.rotate_node | ||||||
| }) | }) | ||||||
| @@ -535,7 +535,7 @@ homedecor.register("ceiling_lamp", { | |||||||
| 		"homedecor_generic_plastic_black.png^[colorize:#442d04:200", | 		"homedecor_generic_plastic_black.png^[colorize:#442d04:200", | ||||||
| 	}, | 	}, | ||||||
| 	inventory_image = "homedecor_ceiling_lamp_inv.png", | 	inventory_image = "homedecor_ceiling_lamp_inv.png", | ||||||
| 	light_source = LIGHT_MAX, | 	light_source = default.LIGHT_MAX, | ||||||
| 	groups = {snappy=3}, | 	groups = {snappy=3}, | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	on_punch = function(pos, node, puncher) | 	on_punch = function(pos, node, puncher) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user