diff --git a/pages/creative.lua b/pages/creative.lua index 1d5fdee..18a822a 100644 --- a/pages/creative.lua +++ b/pages/creative.lua @@ -287,3 +287,8 @@ smart_inventory.register_page({ smartfs_callback = creative_callback, sequence = 15 }) + +minetest.register_on_leaveplayer(function(player) + local invname = player:get_player_name().."_trash_inv" + minetest.remove_detached_inventory(invname) +end)