1
0
mirror of https://github.com/Splizard/minetest-mod-snow.git synced 2024-12-28 07:30:17 +01:00

Should fix #25

This commit is contained in:
SmallJoker 2016-12-04 10:06:14 +01:00 committed by HybridDog
parent da6a4b3361
commit c72f56068f

View File

@ -103,9 +103,8 @@ do
--Create config file. --Create config file.
return return
end end
io.close(file)
config = {} config = {}
for line in io.lines(path) do for line in file:lines() do
if line:sub(1,1) ~= "#" then if line:sub(1,1) ~= "#" then
local i, v = line:match("^(%S*) = (%S*)") local i, v = line:match("^(%S*) = (%S*)")
if i and v then if i and v then
@ -113,6 +112,7 @@ do
end end
end end
end end
io.close(file)
end end
if config then if config then