summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--worldedit/init.lua2
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)