From 52ea2c3c66764da4edeadb3c9bbbe85435aae47e Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Mon, 11 May 2015 11:28:56 +0700 Subject: 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. --- mesecons_lightstone/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesecons_lightstone') 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, -- cgit v1.2.3