diff options
author | Phil Hagelberg <phil@hagelb.org> | 2015-05-11 11:28:56 +0700 |
---|---|---|
committer | Phil Hagelberg <phil@hagelb.org> | 2015-05-11 11:28:56 +0700 |
commit | 52ea2c3c66764da4edeadb3c9bbbe85435aae47e (patch) | |
tree | f11e886a78eef4cdfe4d81faac2499894df6268a /mesecons/oldwires.lua | |
parent | b6ae419b009a2b547ec3ec40f76e4108194a2335 (diff) | |
download | mesecons-52ea2c3c66764da4edeadb3c9bbbe85435aae47e.tar mesecons-52ea2c3c66764da4edeadb3c9bbbe85435aae47e.tar.gz mesecons-52ea2c3c66764da4edeadb3c9bbbe85435aae47e.tar.bz2 mesecons-52ea2c3c66764da4edeadb3c9bbbe85435aae47e.tar.xz mesecons-52ea2c3c66764da4edeadb3c9bbbe85435aae47e.zip |
Don't refer to LIGHT_MAX global; use default.
The LIGHT_MAX global is created in the legacy.lua file in the default
mod; it states that it's there for backwards compatibility, but it would
be better to reference the proper value inside the default table.
Diffstat (limited to 'mesecons/oldwires.lua')
-rw-r--r-- | mesecons/oldwires.lua | 2 |
1 files changed, 1 insertions, 1 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" |