forked from minetest-mods/technic
bugfix
This commit is contained in:
parent
e7d3d78ed2
commit
7e7ec9713a
@ -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", {
|
||||||
|
Loading…
Reference in New Issue
Block a user