mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-12-23 16:50:18 +01:00
Fixed typos.
This commit is contained in:
parent
3f5bf6c240
commit
5bf52b5de9
@ -1,11 +1,11 @@
|
||||
local time_interval = 1.0
|
||||
local fifo_path "/tmp/mt_players_fifo"
|
||||
local fifo_path = "/tmp/mt_players_fifo"
|
||||
|
||||
function players_data()
|
||||
ps = {}
|
||||
for _, player in ipairs(minetest.get_connected_players()) do
|
||||
local pos = player:getpos()
|
||||
local name = player:get_player_name()
|
||||
local pname = player:get_player_name()
|
||||
local data = {
|
||||
name = pname,
|
||||
x = pos.x,
|
||||
@ -20,7 +20,7 @@ function time_interval_func()
|
||||
local players = players_data()
|
||||
local fifo = io.open(fifo_path, 'w')
|
||||
if (fifo ~= nil) then
|
||||
fifo.write(players)
|
||||
fifo:write(players)
|
||||
fifo:close()
|
||||
end
|
||||
minetest.after(time_interval, time_interval_func)
|
||||
|
Loading…
Reference in New Issue
Block a user