From 0921c326a8f1b6ffc5e8013e3c477983df96f386 Mon Sep 17 00:00:00 2001 From: SmallJoker <mk939@ymail.com> Date: Thu, 03 Aug 2023 21:28:41 +0200 Subject: [PATCH] Chainsaw: fix occasional error on startup --- technic/tools/flashlight.lua | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/technic/tools/flashlight.lua b/technic/tools/flashlight.lua index a4ac608..84decbb 100644 --- a/technic/tools/flashlight.lua +++ b/technic/tools/flashlight.lua @@ -99,7 +99,7 @@ if node and node.name == "air" then minetest.set_node(rounded_pos, {name="technic:light"}) end - local node = minetest.get_node_or_nil(old_pos) + node = minetest.get_node_or_nil(old_pos) if node and node.name == "technic:light" then minetest.remove_node(old_pos) end @@ -118,6 +118,6 @@ walkable = false, buildable_to = true, sunlight_propagates = true, - light_source = LIGHT_MAX, + light_source = minetest.LIGHT_MAX, pointable = false, }) -- Gitblit v1.8.0