1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-04 09:00:22 +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

@ -1036,7 +1036,7 @@ minetest.register_node("default:acid_flowing", {
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.6}
},
},
alpha = WATER_ALPHA,
alpha = 160,
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
@ -1048,7 +1048,7 @@ minetest.register_node("default:acid_flowing", {
liquidtype = "flowing",
liquid_alternative_flowing = "default:acid_flowing",
liquid_alternative_source = "default:acid_source",
liquid_viscosity = WATER_VISC,
liquid_viscosity = 1,
damage_per_second = 3,
post_effect_color = {a = 120, r = 50, g = 90, b = 30},
groups = {water = 3, acid = 3, liquid = 3, puts_out_fire = 1, not_in_creative_inventory = 1},
@ -1069,7 +1069,7 @@ minetest.register_node("default:acid_source", {
backface_culling = false,
}
},
alpha = WATER_ALPHA,
alpha = 160,
paramtype = "light",
walkable = false,
pointable = false,
@ -1080,7 +1080,7 @@ minetest.register_node("default:acid_source", {
liquidtype = "source",
liquid_alternative_flowing = "default:acid_flowing",
liquid_alternative_source = "default:acid_source",
liquid_viscosity = WATER_VISC,
liquid_viscosity = 1,
damage_per_second = 3,
post_effect_color = {a = 120, r = 50, g = 90, b = 30},
groups = {water = 3, acid = 3, liquid = 3, puts_out_fire = 1},
@ -1102,7 +1102,7 @@ minetest.register_node("default:torch", {
sunlight_propagates = true,
is_ground_content = false,
walkable = false,
light_source = LIGHT_MAX,
light_source = default.LIGHT_MAX - 1,
node_box = {
type = "wallmounted",
wall_top = {-0.0625, -0.0625, -0.0625, 0.0625, 0.5 , 0.0625},
@ -1464,7 +1464,7 @@ minetest.register_node("default:nyancat", {
"default_nc_side.png", "default_nc_back.png", "default_nc_front.png"},
paramtype = "light",
paramtype2 = "facedir",
light_source = LIGHT_MAX,
light_source = default.LIGHT_MAX - 1,
groups = {cracky = 2},
is_ground_content = false,
post_effect_color = {a = 128, r= 255, g= 128, b= 255},
@ -1478,7 +1478,7 @@ minetest.register_node("default:nyancat_rainbow", {
"default_nc_rb.png", "default_nc_rb.png"},
paramtype = "light",
paramtype2 = "facedir",
light_source = LIGHT_MAX,
light_source = default.LIGHT_MAX - 1,
sunlight_propagates = true,
walkable = false,
use_texture_alpha = true,