1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +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

@ -67,7 +67,7 @@ minetest.register_node("mesecons_button:button_on", {
paramtype2 = "facedir",
legacy_wallmounted = true,
walkable = false,
light_source = LIGHT_MAX-7,
light_source = default.LIGHT_MAX-7,
sunlight_propagates = true,
selection_box = {
type = "fixed",

View File

@ -17,7 +17,7 @@ minetest.register_node("mesecons_lamp:lamp_on", {
legacy_wallmounted = true,
sunlight_propagates = true,
walkable = true,
light_source = LIGHT_MAX,
light_source = default.LIGHT_MAX - 1,
node_box = mesecon_lamp_box,
selection_box = mesecon_lamp_box,
groups = {dig_immediate=3,not_in_creative_inventory=1, mesecon_effector_on = 1},

View File

@ -31,7 +31,7 @@ function mesecon.lightstone_add(name, base_item, texture_off, texture_on)
tiles = {texture_on},
groups = {cracky=2,not_in_creative_inventory=1, mesecon = 2},
drop = "mesecons_lightstone:lightstone_" .. name .. "_off",
light_source = LIGHT_MAX-2,
light_source = default.LIGHT_MAX-2,
sounds = default.node_sound_stone_defaults(),
mesecons = {effector = {
rules = lightstone_rules,

View File

@ -9,7 +9,7 @@ minetest.register_node("mesecons_powerplant:power_plant", {
paramtype = "light",
walkable = false,
groups = {dig_immediate=3, mesecon = 2},
light_source = LIGHT_MAX-9,
light_source = default.LIGHT_MAX-9,
description="Power Plant",
selection_box = {
type = "fixed",

View File

@ -76,7 +76,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", {
paramtype2 = "wallmounted",
selection_box = torch_selectionbox,
groups = {dig_immediate=3},
light_source = LIGHT_MAX-5,
light_source = default.LIGHT_MAX-5,
description="Mesecon Torch",
mesecons = {receptor = {
state = mesecon.state.on,