Skip to content

Commit 5c115e2

Browse files
committedMay 16, 2015
Fix existence check trying to open files for writing
1 parent ab47385 commit 5c115e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎worldedit/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ end
2323
local path = minetest.get_modpath(minetest.get_current_modname())
2424

2525
local function load_module(path)
26-
local file = io.open(path)
26+
local file = io.open(path, "r")
2727
if not file then return end
2828
file:close()
2929
return dofile(path)

0 commit comments

Comments
 (0)
Please sign in to comment.