mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-10-31 21:33:02 +00:00
small fix to file:read error
This commit is contained in:
parent
8d9f51de35
commit
55ddc16b2e
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ setting_handler.read = function()
|
||||||
local file, err = io.open(path .. "/settings.conf", "rb")
|
local file, err = io.open(path .. "/settings.conf", "rb")
|
||||||
if err then return false end
|
if err then return false end
|
||||||
-- Split by newline
|
-- Split by newline
|
||||||
-- local settings = wea_c.split(file:read(),"[\n\r]+")
|
-- local settings = wea_c.split(file:read("*a"),"[\n\r]+")
|
||||||
file:close()
|
file:close()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue