mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Keep track of player item
This commit is contained in:
parent
467b3cf4c1
commit
91d1186cbb
5 changed files with 28 additions and 1 deletions
|
@ -2200,6 +2200,7 @@ void the_game(
|
|||
if(client.getLocalInventoryUpdated()
|
||||
|| g_selected_item != old_selected_item)
|
||||
{
|
||||
client.selectPlayerItem(g_selected_item);
|
||||
old_selected_item = g_selected_item;
|
||||
//std::cout<<"Updating local inventory"<<std::endl;
|
||||
client.getLocalInventory(local_inventory);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue