mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-29 22:03:42 +01:00
Empty data when player leaves
This commit is contained in:
parent
5d73794096
commit
e6268a395f
7
init.lua
7
init.lua
@ -911,6 +911,13 @@ if not progressive_mode then
|
||||
})
|
||||
end
|
||||
|
||||
mt.register_on_leaveplayer(function(player)
|
||||
if player then
|
||||
local name = player:get_player_name()
|
||||
player_data[name] = nil
|
||||
end
|
||||
end)
|
||||
|
||||
--[[ Custom recipes (>3x3) test code
|
||||
|
||||
mt.register_craftitem(":secretstuff:custom_recipe_test", {
|
||||
|
Loading…
Reference in New Issue
Block a user