From 6f631174351fa0170f9000bce300d45aa8084ba2 Mon Sep 17 00:00:00 2001 From: Deathmax Date: Sat, 9 Jul 2011 23:14:46 +0800 Subject: [PATCH] Do not count coin slots during inventory check --- TShockAPI/TSPlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index 06dea058..227d7c9d 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -116,7 +116,7 @@ namespace TShockAPI bool flag = false; if (RealPlayer) { - for (int i = 0; i < TPlayer.inventory.Length; i++) + for (int i = 0; i < 40; i++) { if (TPlayer.inventory[i] == null || !TPlayer.inventory[i].active) {