Skip to content

Commit

Permalink
Fix existence check trying to open files for writing
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowNinja committed May 16, 2015
1 parent ab47385 commit 5c115e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worldedit/init.lua
Expand Up @@ -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)
Expand Down

0 comments on commit 5c115e2

Please sign in to comment.