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:
parent
da6a4b3361
commit
c72f56068f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user