mirror of
https://github.com/minetest-mods/carpets.git
synced 2024-12-30 00:47:28 +01:00
fix warning about unassigned global variable
This commit is contained in:
parent
60270c9695
commit
efe8db3717
3
init.lua
3
init.lua
@ -1,5 +1,6 @@
|
||||
dofile(minetest.get_modpath("carpets").."/carpet_api.lua")
|
||||
carpets = {}
|
||||
|
||||
dofile(minetest.get_modpath("carpets").."/carpet_api.lua")
|
||||
dofile(minetest.get_modpath("carpets").."/modutils.lua")
|
||||
|
||||
depmod = carpets.modutils.get_depmod("carpets")
|
||||
|
@ -14,6 +14,7 @@ else
|
||||
envroot = _G[currentmod]
|
||||
end
|
||||
-- framework stuff done. -- Now the tool
|
||||
----------------------------------------
|
||||
|
||||
envroot.modutils = {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user