1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 14:16:06 +02:00

Changed all the LIGHT_MAX calls to default.LIGHT_MAX

- Avoided crash by using the real variable instead of its old name
This commit is contained in:
LeMagnesium
2015-03-03 18:22:38 +01:00
parent 3ae94073c4
commit d9c182cf9d
19 changed files with 525 additions and 524 deletions

View File

@ -122,7 +122,7 @@ homedecor.register("ceiling_fan", {
}
},
groups = { snappy = 3 },
light_source = LIGHT_MAX-1,
light_source = default.LIGHT_MAX-1,
sounds = default.node_sound_wood_defaults(),
})

View File

@ -80,7 +80,7 @@ homedecor.register("television", {
}
}
},
light_source = LIGHT_MAX - 1,
light_source = default.LIGHT_MAX - 1,
groups = { snappy = 3 },
sounds = default.node_sound_wood_defaults(),
})

View File

@ -82,7 +82,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_wood_defaults(),
on_place = minetest.rotate_node
})
@ -100,7 +100,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_wood_defaults(),
on_place = minetest.rotate_node
})
@ -120,7 +120,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_wood_defaults(),
on_place = minetest.rotate_node
})
@ -138,7 +138,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(),
@ -170,7 +170,7 @@ homedecor.register("candle", {
},
sunlight_propagates = true,
groups = { snappy = 3 },
light_source = LIGHT_MAX-4,
light_source = default.LIGHT_MAX-4,
sounds = default.node_sound_wood_defaults(),
})
@ -190,7 +190,7 @@ homedecor.register("candle_thin", {
sunlight_propagates = true,
walkable = false,
groups = { snappy = 3 },
light_source = LIGHT_MAX-4,
light_source = default.LIGHT_MAX-4,
})
homedecor.register("oil_lamp", {
@ -206,7 +206,7 @@ homedecor.register("oil_lamp", {
}
},
groups = { snappy = 3 },
light_source = LIGHT_MAX-4,
light_source = default.LIGHT_MAX-4,
sounds = default.node_sound_wood_defaults(),
})
@ -250,7 +250,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 - 1,
sounds = default.node_sound_wood_defaults(),
})
@ -270,7 +270,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_wood_defaults(),
on_place = minetest.rotate_node
})

View File

@ -178,7 +178,7 @@ homedecor.register("fishtank_lighted", {
"homedecor_fishtank_back_lighted.png",
"homedecor_fishtank_front_lighted.png"
},
light_source = LIGHT_MAX-4,
light_source = default.LIGHT_MAX-4,
node_box = {
type = "fixed",
fixed = {