NotLe0n/BetterChests

DepositAll/LootAll hotkeys deposit/loot piggybank even though it's not open

Closed this issue · 0 comments

Needs testing.

Seems to be vanilla behavior. Snippet from ChestUI.LootAll:

for (int l = 0; l < 40; l++)
{
  if (player.bank.item[l].type > 0)
  {
    player.bank.item[l].position = player.Center;
    player.bank.item[l] = player.GetItem(Main.myPlayer, player.bank.item[l], false, false);
  }
}

There is no check if the player has the piggybank open or not.