summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Euchner <norrepli@gmail.com>2015-05-11 07:08:24 +0200
committerFlorian Euchner <norrepli@gmail.com>2015-05-11 07:08:24 +0200
commit3066346d7552d3b7603d0392548b57d6fee8ee99 (patch)
treef11e886a78eef4cdfe4d81faac2499894df6268a
parentb6ae419b009a2b547ec3ec40f76e4108194a2335 (diff)
parent52ea2c3c66764da4edeadb3c9bbbe85435aae47e (diff)
downloadmesecons-3066346d7552d3b7603d0392548b57d6fee8ee99.tar
mesecons-3066346d7552d3b7603d0392548b57d6fee8ee99.tar.gz
mesecons-3066346d7552d3b7603d0392548b57d6fee8ee99.tar.bz2
mesecons-3066346d7552d3b7603d0392548b57d6fee8ee99.tar.xz
mesecons-3066346d7552d3b7603d0392548b57d6fee8ee99.zip
Merge pull request #233 from technomancy/default-light-max
Don't refer to LIGHT_MAX global; use default.
-rw-r--r--mesecons/oldwires.lua2
-rw-r--r--mesecons_button/init.lua2
-rw-r--r--mesecons_lamp/init.lua2
-rw-r--r--mesecons_lightstone/init.lua2
-rw-r--r--mesecons_powerplant/init.lua2
-rw-r--r--mesecons_torch/init.lua2
6 files changed, 6 insertions, 6 deletions
diff --git a/mesecons/oldwires.lua b/mesecons/oldwires.lua
index 9e54b1b..b3b09e5 100644
--- a/mesecons/oldwires.lua
+++ b/mesecons/oldwires.lua
@@ -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"
diff --git a/mesecons_button/init.lua b/mesecons_button/init.lua
index f147d8f..ead688e 100644
--- a/mesecons_button/init.lua
+++ b/mesecons_button/init.lua
@@ -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",
diff --git a/mesecons_lamp/init.lua b/mesecons_lamp/init.lua
index 6cdae2d..362453c 100644
--- a/mesecons_lamp/init.lua
+++ b/mesecons_lamp/init.lua
@@ -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},
diff --git a/mesecons_lightstone/init.lua b/mesecons_lightstone/init.lua
index db34249..da7cc41 100644
--- a/mesecons_lightstone/init.lua
+++ b/mesecons_lightstone/init.lua
@@ -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,
diff --git a/mesecons_powerplant/init.lua b/mesecons_powerplant/init.lua
index 33cedff..a5e3327 100644
--- a/mesecons_powerplant/init.lua
+++ b/mesecons_powerplant/init.lua
@@ -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",
diff --git a/mesecons_torch/init.lua b/mesecons_torch/init.lua
index 91f8e65..5d1ad8f 100644
--- a/mesecons_torch/init.lua
+++ b/mesecons_torch/init.lua
@@ -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,