From c624e4dcaae70cee4edc671969af117912d77be8 Mon Sep 17 00:00:00 2001 From: cmdskp Date: Sun, 13 Dec 2015 20:04:28 +0000 Subject: [PATCH] Change undeclared "lines" to local Fixes error reported by minetest of undeclared global --- u_skins/players.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/u_skins/players.lua b/u_skins/players.lua index df999fb..82ea4c1 100644 --- a/u_skins/players.lua +++ b/u_skins/players.lua @@ -6,7 +6,7 @@ u_skins.load = function() data = input:read('*all') end if data and data ~= "" then - lines = string.split(data,"\n") + local lines = string.split(data,"\n") for _, line in ipairs(lines) do data = string.split(line, ' ', 2) u_skins.u_skins[data[1]] = data[2]