You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought it would be interesting having the feature for updating just 1 item in the inventory, without reloading the entire GUI.
This update doesn't remove the item's listener.
To do that I suggest this change in the method InventoryManager#getOpenedPlayers:
public List<UUID> getOpenedPlayers(SmartInventory inv) {
List<UUID> list = new ArrayList<>();
this.inventories.forEach((player, playerInv) -> {
if (inv.equals(playerInv))
list.add(player);
});
return list;
}
A list of players may cause problems inside InventoryContent's implementation (private method update), making the update impossible.
The text was updated successfully, but these errors were encountered:
Hi,
I thought it would be interesting having the feature for updating just 1 item in the inventory, without reloading the entire GUI.
This update doesn't remove the item's listener.
To do that I suggest this change in the method
InventoryManager#getOpenedPlayers
:A list of players may cause problems inside InventoryContent's implementation (private method
update
), making the update impossible.The text was updated successfully, but these errors were encountered: