Fix existence check trying to open files for writing

This commit is contained in:
ShadowNinja 2015-05-16 19:26:37 -04:00
parent ab47385f7b
commit 5c115e282c

@ -23,7 +23,7 @@ end
local path = minetest.get_modpath(minetest.get_current_modname())
local function load_module(path)
local file = io.open(path)
local file = io.open(path, "r")
if not file then return end
file:close()
return dofile(path)