From 444cd0f2f1f4a599dad0a0694df6be4e37baa382 Mon Sep 17 00:00:00 2001
From: sfan5 <sfan5@live.de>
Date: Tue, 24 Jul 2018 21:28:38 +0200
Subject: Replace usage of default.LIGHT_MAX with minetest.LIGHT_MAX

It was moved a long time ago and the former is not guaranteed to be available.
fixes #424
---
 mesecons_torch/init.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'mesecons_torch')

diff --git a/mesecons_torch/init.lua b/mesecons_torch/init.lua
index 99701a8..867c909 100644
--- a/mesecons_torch/init.lua
+++ b/mesecons_torch/init.lua
@@ -80,7 +80,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", {
 	paramtype2 = "wallmounted",
 	selection_box = torch_selectionbox,
 	groups = {dig_immediate=3},
-	light_source = default.LIGHT_MAX-5,
+	light_source = minetest.LIGHT_MAX-5,
 	description="Mesecon Torch",
 	sounds = default.node_sound_defaults(),
 	mesecons = {receptor = {
-- 
cgit v1.2.3