summaryrefslogtreecommitdiff
path: root/flashlight.lua
diff options
context:
space:
mode:
Diffstat (limited to 'flashlight.lua')
-rw-r--r--flashlight.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/flashlight.lua b/flashlight.lua
index 1125246..674b5ac 100644
--- a/flashlight.lua
+++ b/flashlight.lua
@@ -144,6 +144,7 @@ minetest.register_node("technic:light_off", {
})
function check_for_flashlight (player)
+if player==nil then return false
local inv = player:get_inventory()
local hotbar=inv:get_list("main")
for i=1,8,1 do