mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-25 02:10:30 +01:00
bugfix
This commit is contained in:
parent
e7d3d78ed2
commit
7e7ec9713a
@ -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
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user