summaryrefslogtreecommitdiff
path: root/gamestate.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamestate.lua')
-rwxr-xr-xgamestate.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/gamestate.lua b/gamestate.lua
index 2e56307..1cad7f4 100755
--- a/gamestate.lua
+++ b/gamestate.lua
@@ -289,3 +289,8 @@ minetest.register_chatcommand("mypacman_exit", {
end
end
})
+
+minetest.register_on_shutdown(function()
+ minetest.log("action", "Server shuts down. Saving pacman data")
+ gamestate_save()
+end)