From 22851f27d235bcbdca8d89f5c4a12924a461e699 Mon Sep 17 00:00:00 2001 From: Panquesito7 Date: Thu, 29 Aug 2019 13:27:34 -0500 Subject: [PATCH 1/4] Update init.lua --- init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) - From 000045b974e0b4c94fce73edf1ce1db7bfb3fd99 Mon Sep 17 00:00:00 2001 From: Panquesito7 Date: Thu, 29 Aug 2019 13:28:56 -0500 Subject: [PATCH 2/4] Delete deprecated depends.txt --- depends.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 depends.txt diff --git a/depends.txt b/depends.txt deleted file mode 100644 index 8b13789..0000000 --- a/depends.txt +++ /dev/null @@ -1 +0,0 @@ - From 45b14dc6e15cb829d2337dc12d68908672504c3d Mon Sep 17 00:00:00 2001 From: Panquesito7 Date: Thu, 29 Aug 2019 13:30:18 -0500 Subject: [PATCH 3/4] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) - From 5b5ad3913af11f86ddc526400fff03c3e31e6606 Mon Sep 17 00:00:00 2001 From: Panquesito7 Date: Thu, 29 Aug 2019 13:31:19 -0500 Subject: [PATCH 4/4] Create mod.conf --- mod.conf | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 mod.conf 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.