mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2024-12-29 12:10:24 +01:00
Stop flooding connected clients by all detached inventories if freeminer is used, fixes #7
This commit is contained in:
parent
1b40a02f1c
commit
310ec1da81
@ -187,3 +187,11 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
unified_inventory.current_page[player_name])
|
||||
end)
|
||||
|
||||
if minetest.delete_detached_inventory then
|
||||
minetest.register_on_leaveplayer(function(player)
|
||||
local player_name = player:get_player_name()
|
||||
minetest.delete_detached_inventory(player_name.."_bags")
|
||||
minetest.delete_detached_inventory(player_name.."craftrecipe")
|
||||
minetest.delete_detached_inventory(player_name.."refill")
|
||||
end)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user