Skip to content

Commit

Permalink
Merge pull request #233 from technomancy/default-light-max
Browse files Browse the repository at this point in the history
Don't refer to LIGHT_MAX global; use default.
  • Loading branch information
Jeija committed May 11, 2015
2 parents b6ae419 + 52ea2c3 commit 3066346
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mesecons/oldwires.lua
Expand Up @@ -30,7 +30,7 @@ minetest.register_node("mesecons:mesecon_on", {
},
groups = {dig_immediate=3, not_in_creaive_inventory=1, mesecon=1},
drop = "mesecons:mesecon_off 1",
light_source = LIGHT_MAX-11,
light_source = default.LIGHT_MAX-11,
mesecons = {conductor={
state = mesecon.state.on,
offstate = "mesecons:mesecon_off"
Expand Down
2 changes: 1 addition & 1 deletion mesecons_button/init.lua
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion mesecons_lamp/init.lua
Expand Up @@ -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,
node_box = mesecon_lamp_box,
selection_box = mesecon_lamp_box,
groups = {dig_immediate=3,not_in_creative_inventory=1, mesecon_effector_on = 1},
Expand Down
2 changes: 1 addition & 1 deletion mesecons_lightstone/init.lua
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion mesecons_powerplant/init.lua
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion mesecons_torch/init.lua
Expand Up @@ -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,
Expand Down

0 comments on commit 3066346

Please sign in to comment.