Fix 'Unable to register same mod storage twice' error

This commit is contained in:
Maksym H 2023-09-25 20:51:23 +03:00
parent 1c4ed7e761
commit 07a8783769
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