TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ IsStackingItems()

bool Terraria.Player.IsStackingItems ( )
inline

Definition at line 21033 of file Player.cs.

21034 {
21035 for (int i = 0; i < inventoryChestStack.Length; i++)
21036 {
21037 if (inventoryChestStack[i])
21038 {
21039 if (inventory[i].type != 0 && inventory[i].stack != 0)
21040 {
21041 return true;
21042 }
21043 inventoryChestStack[i] = false;
21044 }
21045 }
21046 if (disableVoidBag >= 0)
21047 {
21048 return true;
21049 }
21050 return false;
21051 }
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
Definition Player.cs:1767
bool[] inventoryChestStack
Definition Player.cs:1769

References Terraria.Player.disableVoidBag, Terraria.Player.inventory, and Terraria.Player.inventoryChestStack.

Referenced by Terraria.Player.HasLockedInventory().

+ Here is the caller graph for this function: