From 57fc745c568bdfd2f2578c1cbe751c87738f365d Mon Sep 17 00:00:00 2001 From: Deathmax Date: Sat, 9 Jul 2011 23:17:04 +0800 Subject: [PATCH] Ignore no free slots if item is a coin --- TShockAPI/Commands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 0eeeb7b7..686144ca 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1593,7 +1593,7 @@ namespace TShockAPI var item = items[0]; if (item.type >= 1 && item.type < Main.maxItemTypes) { - if (args.Player.InventorySlotAvailable) + if (args.Player.InventorySlotAvailable || item.name.Contains("Coin")) { args.Player.GiveItem(item.type, item.name, item.width, item.height, item.maxStack); args.Player.SendMessage(string.Format("Got some {0}.", item.name)); @@ -1656,7 +1656,7 @@ namespace TShockAPI else { var plr = players[0]; - if (plr.InventorySlotAvailable) + if (plr.InventorySlotAvailable || item.name.Contains("Coin")) { plr.GiveItem(item.type, item.name, item.width, item.height, item.maxStack); args.Player.SendMessage(string.Format("Gave {0} some {1}.", plr.Name, item.name));