mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 14:16:06 +02:00
fix light_source warning, register_node function rewrite light_source to LIGHT_MAX(14) when is greater than LIGHT_MAX
fix use of old var LIGHT_MAX to default.LIGHT_MAX
This commit is contained in:
@ -70,7 +70,7 @@ minetest.register_node("chains:chain_top_brass", {
|
||||
minetest.register_node("chains:chandelier", {
|
||||
description = "Chandelier (wrought iron)",
|
||||
paramtype = "light",
|
||||
light_source = LIGHT_MAX-2,
|
||||
light_source = default.LIGHT_MAX-2,
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
sunlight_propagates = true,
|
||||
@ -97,7 +97,7 @@ minetest.register_node("chains:chandelier", {
|
||||
minetest.register_node("chains:chandelier_brass", {
|
||||
description = "Chandelier (brass)",
|
||||
paramtype = "light",
|
||||
light_source = LIGHT_MAX-2,
|
||||
light_source = default.LIGHT_MAX-2,
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
sunlight_propagates = true,
|
||||
|
@ -111,7 +111,7 @@ homedecor.register("ceiling_fan", {
|
||||
}
|
||||
},
|
||||
groups = { snappy = 3 },
|
||||
light_source = LIGHT_MAX-1,
|
||||
light_source = default.LIGHT_MAX-1,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
|
@ -195,7 +195,7 @@ homedecor.register("fishtank_lighted", {
|
||||
"homedecor_fishtank_water_top_lighted.png",
|
||||
"homedecor_fishtank_sides_lighted.png",
|
||||
},
|
||||
light_source = LIGHT_MAX-4,
|
||||
light_source = default.LIGHT_MAX-4,
|
||||
use_texture_alpha = true,
|
||||
selection_box = ft_cbox,
|
||||
collision_box = ft_cbox,
|
||||
|
Reference in New Issue
Block a user