From f63758a7d49d65e7786de7d3b88ef94f8e5c0424 Mon Sep 17 00:00:00 2001 From: Simon311 Date: Mon, 7 Oct 2013 11:44:53 +0400 Subject: [PATCH] & -> && --- TShockAPI/Commands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index f0633f0e..005fdfe4 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -4019,7 +4019,7 @@ namespace TShockAPI } } - if (args.Player.InventorySlotAvailable || (item.name.Contains("Coin") & item.type != 905) || item.type == 58 || item.type == 184) + if (args.Player.InventorySlotAvailable || (item.name.Contains("Coin") && item.type != 905) || item.type == 58 || item.type == 184) { if (itemAmount == 0 || itemAmount > item.maxStack) itemAmount = item.maxStack; @@ -4099,7 +4099,7 @@ namespace TShockAPI else { var plr = players[0]; - if (plr.InventorySlotAvailable || (item.name.Contains("Coin") & item.type != 905) || item.type == 58 || item.type == 184) + if (plr.InventorySlotAvailable || (item.name.Contains("Coin") && item.type != 905) || item.type == 58 || item.type == 184) { if (itemAmount == 0 || itemAmount > item.maxStack) itemAmount = item.maxStack;