1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-25 02:00:39 +01:00

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

View File

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