Merge pull request #7 from MoNTE48/patch1

Fix 'Unable to register same mod storage twice' error
This commit is contained in:
Alexsandro Percy 2023-09-25 17:50:21 -03:00 committed by GitHub
commit e70246f1cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 26 deletions

View file

@ -1,8 +1,10 @@
-- Minetest 5.4.1 : airutils
local storage = minetest.get_mod_storage()
airutils = {
storage = minetest.get_mod_storage()
}
airutils = {}
local storage = airutils.storage
airutils.colors ={
black='#2b2b2b',

View file

@ -1,4 +1,4 @@
local storage = minetest.get_mod_storage()
local storage = airutils.storage
airutils.modname = minetest.get_current_modname()
--function to format formspec for mineclone. In case of minetest, just returns an empty string