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