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_powerplant/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesecons_powerplant') 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", -- cgit v1.2.3