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.
This commit is contained in:
Phil Hagelberg
2015-05-11 11:28:56 +07:00
parent b6ae419b00
commit 52ea2c3c66
6 changed files with 6 additions and 6 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",