mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-08-20 13:34:05 +02:00
small fix to file:read error
This commit is contained in:
parent
8d9f51de35
commit
55ddc16b2e
@ -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 New Issue
Block a user