From 5bf52b5de9b2ccc895dae7dfe62608559d87ff54 Mon Sep 17 00:00:00 2001 From: Raimund Renkert Date: Mon, 9 Mar 2015 15:01:05 +0100 Subject: [PATCH] Fixed typos. --- mods/track_players/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/track_players/init.lua b/mods/track_players/init.lua index 198e651..0203630 100644 --- a/mods/track_players/init.lua +++ b/mods/track_players/init.lua @@ -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)