mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-25 02:00:39 +01:00
Fix existence check trying to open files for writing
This commit is contained in:
parent
ab47385f7b
commit
5c115e282c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user