diff options
-rwxr-xr-x | gamestate.lua | 5 |
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) |