Fix free item slot detection
This commit is contained in:
parent
2020aaf5eb
commit
a44618d6c6
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ namespace TShockAPI
|
|||
bool flag = false;
|
||||
if (RealPlayer)
|
||||
{
|
||||
for (int i = 0; i < 45; i++)
|
||||
for (int i = 0; i < 40; i++) //41 is trash can, 42-45 is coins, 46-49 is ammo
|
||||
{
|
||||
if (TPlayer.inventory[i] == null || !TPlayer.inventory[i].active || TPlayer.inventory[i].name == "")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue