summaryrefslogtreecommitdiff
path: root/flashlight.lua
diff options
context:
space:
mode:
authorMaciej Kasatkin <mk@realbadangel.pl>2012-10-30 00:39:35 +0100
committerMaciej Kasatkin <mk@realbadangel.pl>2012-10-30 00:39:35 +0100
commit0bd7a8726248a1e99d3c0ee35783985b6e8e8e33 (patch)
tree33ab10df387b271ef6fb50d8555c337095a08d9a /flashlight.lua
parent54d6c27a063d59d4a21061760201a2815f8f0573 (diff)
Bugfix and new item
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