Skip to content
Permalink
Browse files

Fix existence check trying to open files for writing

  • Loading branch information
ShadowNinja committed May 16, 2015
1 parent ab47385 commit 5c115e282c14f6b1d5979baa0fc3ea30e7d12f94
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)

0 comments on commit 5c115e2

Please sign in to comment.
You can’t perform that action at this time.