diff options
author | ShadowNinja <shadowninja@minetest.net> | 2015-05-16 19:26:37 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2015-05-16 19:27:27 -0400 |
commit | 5c115e282c14f6b1d5979baa0fc3ea30e7d12f94 (patch) | |
tree | 3d4a6f46abd0deb424c8cae0954446f770c1106f /worldedit | |
parent | ab47385f7b00912e56b8604c89e332504a390740 (diff) |
Fix existence check trying to open files for writing
Diffstat (limited to 'worldedit')
-rw-r--r-- | worldedit/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worldedit/init.lua b/worldedit/init.lua index 34c9820..e193454 100644 --- a/worldedit/init.lua +++ b/worldedit/init.lua @@ -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)
|