Skip to content

Commit 3066346

Browse files
committed
Merge pull request #233 from technomancy/default-light-max
Don't refer to LIGHT_MAX global; use default.
2 parents b6ae419 + 52ea2c3 commit 3066346

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

mesecons/oldwires.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ minetest.register_node("mesecons:mesecon_on", {
3030
},
3131
groups = {dig_immediate=3, not_in_creaive_inventory=1, mesecon=1},
3232
drop = "mesecons:mesecon_off 1",
33-
light_source = LIGHT_MAX-11,
33+
light_source = default.LIGHT_MAX-11,
3434
mesecons = {conductor={
3535
state = mesecon.state.on,
3636
offstate = "mesecons:mesecon_off"

mesecons_button/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ minetest.register_node("mesecons_button:button_on", {
6767
paramtype2 = "facedir",
6868
legacy_wallmounted = true,
6969
walkable = false,
70-
light_source = LIGHT_MAX-7,
70+
light_source = default.LIGHT_MAX-7,
7171
sunlight_propagates = true,
7272
selection_box = {
7373
type = "fixed",

mesecons_lamp/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ minetest.register_node("mesecons_lamp:lamp_on", {
1717
legacy_wallmounted = true,
1818
sunlight_propagates = true,
1919
walkable = true,
20-
light_source = LIGHT_MAX,
20+
light_source = default.LIGHT_MAX,
2121
node_box = mesecon_lamp_box,
2222
selection_box = mesecon_lamp_box,
2323
groups = {dig_immediate=3,not_in_creative_inventory=1, mesecon_effector_on = 1},

mesecons_lightstone/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function mesecon.lightstone_add(name, base_item, texture_off, texture_on)
3131
tiles = {texture_on},
3232
groups = {cracky=2,not_in_creative_inventory=1, mesecon = 2},
3333
drop = "mesecons_lightstone:lightstone_" .. name .. "_off",
34-
light_source = LIGHT_MAX-2,
34+
light_source = default.LIGHT_MAX-2,
3535
sounds = default.node_sound_stone_defaults(),
3636
mesecons = {effector = {
3737
rules = lightstone_rules,

mesecons_powerplant/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ minetest.register_node("mesecons_powerplant:power_plant", {
99
paramtype = "light",
1010
walkable = false,
1111
groups = {dig_immediate=3, mesecon = 2},
12-
light_source = LIGHT_MAX-9,
12+
light_source = default.LIGHT_MAX-9,
1313
description="Power Plant",
1414
selection_box = {
1515
type = "fixed",

mesecons_torch/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", {
7676
paramtype2 = "wallmounted",
7777
selection_box = torch_selectionbox,
7878
groups = {dig_immediate=3},
79-
light_source = LIGHT_MAX-5,
79+
light_source = default.LIGHT_MAX-5,
8080
description="Mesecon Torch",
8181
mesecons = {receptor = {
8282
state = mesecon.state.on,

0 commit comments

Comments
 (0)