mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Save player effects on server shutdown.
This commit is contained in:
parent
cfcaa4fa12
commit
49a5f765bd
1 changed files with 8 additions and 0 deletions
|
@ -455,6 +455,14 @@ minetest.register_on_joinplayer( function(player)
|
|||
mcl_potions._load_player_effects(player)
|
||||
end)
|
||||
|
||||
minetest.register_on_shutdown(function()
|
||||
-- save player effects on server shutdown
|
||||
for _,player in ipairs(minetest.get_connected_players()) do
|
||||
mcl_potions._save_player_effects(player)
|
||||
end
|
||||
|
||||
end)
|
||||
|
||||
|
||||
-- ░██████╗██╗░░░██╗██████╗░██████╗░░█████╗░██████╗░████████╗██╗███╗░░██╗░██████╗░
|
||||
-- ██╔════╝██║░░░██║██╔══██╗██╔══██╗██╔══██╗██╔══██╗╚══██╔══╝██║████╗░██║██╔════╝░
|
||||
|
|
Loading…
Reference in a new issue