mirror of
				https://github.com/Uberi/Minetest-WorldEdit.git
				synced 2025-10-26 10:45:30 +01:00 
			
		
		
		
	Fix existence check trying to open files for writing
This commit is contained in:
		| @@ -23,7 +23,7 @@ end | |||||||
| local path = minetest.get_modpath(minetest.get_current_modname()) | local path = minetest.get_modpath(minetest.get_current_modname()) | ||||||
|  |  | ||||||
| local function load_module(path) | local function load_module(path) | ||||||
| 	local file = io.open(path) | 	local file = io.open(path, "r") | ||||||
| 	if not file then return end | 	if not file then return end | ||||||
| 	file:close() | 	file:close() | ||||||
| 	return dofile(path) | 	return dofile(path) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user