mirror of
https://github.com/APercy/airutils.git
synced 2025-03-22 02:42:20 +00:00
Fix 'Unable to register same mod storage twice' error
This commit is contained in:
parent
1c4ed7e761
commit
07a8783769
2 changed files with 28 additions and 26 deletions
6
init.lua
6
init.lua
|
@ -1,8 +1,10 @@
|
||||||
-- Minetest 5.4.1 : airutils
|
-- Minetest 5.4.1 : airutils
|
||||||
|
|
||||||
local storage = minetest.get_mod_storage()
|
airutils = {
|
||||||
|
storage = minetest.get_mod_storage()
|
||||||
|
}
|
||||||
|
|
||||||
airutils = {}
|
local storage = airutils.storage
|
||||||
|
|
||||||
airutils.colors ={
|
airutils.colors ={
|
||||||
black='#2b2b2b',
|
black='#2b2b2b',
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
local storage = minetest.get_mod_storage()
|
local storage = airutils.storage
|
||||||
airutils.modname = minetest.get_current_modname()
|
airutils.modname = minetest.get_current_modname()
|
||||||
|
|
||||||
--function to format formspec for mineclone. In case of minetest, just returns an empty string
|
--function to format formspec for mineclone. In case of minetest, just returns an empty string
|
||||||
|
|
Loading…
Add table
Reference in a new issue