This commit is contained in:
RealBadAngel 2012-12-15 00:52:09 +01:00
parent e7d3d78ed2
commit 7e7ec9713a

View File

@ -60,6 +60,7 @@ end)
minetest.register_globalstep(function(dtime) minetest.register_globalstep(function(dtime)
for i,player_name in ipairs(players) do for i,player_name in ipairs(players) do
local player = minetest.env:get_player_by_name(player_name) local player = minetest.env:get_player_by_name(player_name)
if player then
flashlight_weared=check_for_flashlight(player) flashlight_weared=check_for_flashlight(player)
local pos = player:getpos() local pos = player:getpos()
local rounded_pos = {x=round(pos.x),y=round(pos.y)+1,z=round(pos.z)} 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
end
end) end)
minetest.register_node("technic:light", { minetest.register_node("technic:light", {
@ -164,4 +166,4 @@ local hotbar=inv:get_list("main")
end end
end end
return false return false
end end