diff --git a/README.md b/README.md index b15b07a..b5b4a10 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -datastorage +Data Storage =========== -Helper mod to manage players data. -All the mods can acces a single file (container) and easily have the data saved/loaded for them. +Helper mod to manage players data. +All the mods can access a single file (container) and easily have the data saved/loaded for them. Usage ----- @@ -19,4 +19,3 @@ containers will be saved on server shutdown. To forcibly save a container's data use: datastorage.save(id) - diff --git a/depends.txt b/depends.txt deleted file mode 100644 index 8b13789..0000000 --- a/depends.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/init.lua b/init.lua index 30677fc..fd623e1 100644 --- a/init.lua +++ b/init.lua @@ -1,7 +1,7 @@ datastorage = {data = {}} local DIR_DELIM = DIR_DELIM or "/" -local data_path = minetest.get_worldpath()..DIR_DELIM.."datastorage"..DIR_DELIM +local data_path = minetest.get_worldpath() .. DIR_DELIM .. "datastorage" .. DIR_DELIM function datastorage.save(id) local data = datastorage.data[id] @@ -95,4 +95,3 @@ minetest.register_on_shutdown(function() datastorage.save(id) end end) - diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..c666e35 --- /dev/null +++ b/mod.conf @@ -0,0 +1,2 @@ +name = datastorage +description = Helper functions to manage player data.