1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +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:
2017-03-17 02:29:53 +01:00
parent 4728a5fafd
commit 11d89ab4ad
11 changed files with 17 additions and 18 deletions

View File

@ -14,7 +14,7 @@ minetest.register_node("sealamps:torch", {
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
light_source = LIGHT_MAX-1,
light_source = default.LIGHT_MAX-1,
selection_box = {
type = "wallmounted",
wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
@ -40,7 +40,7 @@ minetest.register_node("sealamps:lantern", {
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
light_source = LIGHT_MAX-1,
light_source = default.LIGHT_MAX-1,
selection_box = {
type = "wallmounted",
wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
@ -71,4 +71,4 @@ minetest.register_craft({
recipe = {
{'default:steel_ingot', 'default:bronze_ingot', 'default:glass'},
},
})
})