1
0
mirror of https://github.com/Splizard/minetest-mod-snow.git synced 2024-12-27 15:10:20 +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.
return
end
io.close(file)
config = {}
for line in io.lines(path) do
for line in file:lines() do
if line:sub(1,1) ~= "#" then
local i, v = line:match("^(%S*) = (%S*)")
if i and v then
@ -113,6 +112,7 @@ do
end
end
end
io.close(file)
end
if config then