summaryrefslogtreecommitdiff
path: root/triggers.lua
diff options
context:
space:
mode:
authorRubenwardy <anjayward@gmail.com>2013-02-22 19:57:24 +0000
committerRubenwardy <anjayward@gmail.com>2013-02-22 19:57:24 +0000
commitaef2e2ae9131718ddc2033380179b5a719a18c2a (patch)
treef7acaa9a82a2ddfff11efd77722a36e04e4c22ab /triggers.lua
parent2942ae602b1262748e6903a3bd33078879060f7e (diff)
Add serialization
Diffstat (limited to 'triggers.lua')
-rw-r--r--triggers.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/triggers.lua b/triggers.lua
index 6d458f8..5f4b3b3 100644
--- a/triggers.lua
+++ b/triggers.lua
@@ -67,4 +67,8 @@ minetest.register_on_newplayer(function(player)
--Table to contain achievement records
player_data[player:get_player_name()]['unlocked']={}
+end)
+
+minetest.register_on_shutdown(function()
+ save_playerD()
end) \ No newline at end of file