Use a local var to store the modpath

This commit is contained in:
Nathan Fritzler 2022-06-16 22:27:26 -06:00
parent 21531eb564
commit 00fa1f42cc
Signed by: Lazerbeak12345
GPG Key ID: 736DE8D7C58AD7FE
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
mcljepc_core = {}
dofile(minetest.get_modpath("mcljepc_core") .. "/helpers.lua")
dofile(minetest.get_modpath("mcljepc_core") .. "/blocks.lua")
local modpath = minetest.get_modpath("mcljepc_core")
dofile(modpath .. "/helpers.lua")
dofile(modpath .. "/blocks.lua")
minetest.register_item(":", {
type = "none",