From a8daa417c485ee20716ec050d4c676b5c91af773 Mon Sep 17 00:00:00 2001 From: David Leal <halfpacho@gmail.com> Date: Fri, 12 Jun 2020 20:39:00 +0200 Subject: [PATCH] Add GitHub workflow and luacheck (#545) --- 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