1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-07-13 21:30:26 +02:00

Fix many, many warnings

This commit is contained in:
Panquesito7
2020-02-06 19:42:52 -06:00
parent 69bb0e4185
commit 08879e9c28
6 changed files with 37 additions and 47 deletions

View File

@ -15,8 +15,6 @@ local ver = {major=1, minor=2}
worldedit.version = ver
worldedit.version_string = string.format("%d.%d", ver.major, ver.minor)
local path = minetest.get_modpath(minetest.get_current_modname())
local function load_module(path)
local file = io.open(path, "r")
if not file then return end
@ -24,6 +22,8 @@ local function load_module(path)
return dofile(path)
end
local path = minetest.get_modpath(minetest.get_current_modname())
dofile(path .. "/common.lua")
load_module(path .. "/manipulations.lua")
load_module(path .. "/primitives.lua")