creative: fix trash after re-login
This commit is contained in:
parent
4080daaa35
commit
ab3035402c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user