projects
/
zefram
/
minetest
/
technic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7d3d78
)
bugfix
author
RealBadAngel
<mk@realbadangel.pl>
Fri, 14 Dec 2012 23:52:09 +0000
(
00:52
+0100)
committer
RealBadAngel
<mk@realbadangel.pl>
Fri, 14 Dec 2012 23:52:09 +0000
(
00:52
+0100)
technic/technic/flashlight.lua
patch
|
blob
|
history
diff --git
a/technic/technic/flashlight.lua
b/technic/technic/flashlight.lua
index 460cc21770c2d818307faec6ec20a3efc0ff1034..e773cfc35d8e297a78f7976d68246e2009c2b48e 100644
(file)
--- a/
technic/technic/flashlight.lua
+++ b/
technic/technic/flashlight.lua
@@
-60,6
+60,7
@@
end)
minetest.register_globalstep(function(dtime)
for i,player_name in ipairs(players) do
local player = minetest.env:get_player_by_name(player_name)
+ if player then
flashlight_weared=check_for_flashlight(player)
local pos = player:getpos()
local rounded_pos = {x=round(pos.x),y=round(pos.y)+1,z=round(pos.z)}
@@
-111,6
+112,7
@@
minetest.register_globalstep(function(dtime)
end
end
+ end
end)
minetest.register_node("technic:light", {
@@
-164,4
+166,4
@@
local hotbar=inv:get_list("main")
end
end
return false
-end
\ No newline at end of file
+end