diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index ddf32122..a5fba83c 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -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 == "") {