From a44618d6c69509e8dd69022ffd03ddfbe51d95c1 Mon Sep 17 00:00:00 2001 From: Deathmax Date: Sat, 3 Dec 2011 10:20:31 +0800 Subject: [PATCH] Fix free item slot detection --- TShockAPI/TSPlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == "") {