Closed 00c closed 7 years ago
This happens with recent minetest_game, works fine with older version
It may be related to recent minetest changes https://github.com/minetest/minetest/commit/3af5eef96463510a27cf06b9c3ecc9f1d04cdac6
Tested the mod, crashes with mod security on but works normally disabling it, using minetest-dev e403115 so not fixed on my side
This here should work just fine:
util.lua L106
- 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
config[i] = value_from_string(v)
end
end
end
+ io.close(file)
end
Thanks, l applied your changes.
00c, please tell me if the crash still happens.
Thanks, no more crashes. For now works fine with recent minetest_game and minetest server.
Snow mod cause minetest to crash on startup