diff --git a/init.lua b/init.lua index 06563dd..d7fa1ab 100644 --- a/init.lua +++ b/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", {