Fixing Heart and Star requiring inventory slot

Those don't ever get to inventory, they are consumed by players :)
This commit is contained in:
Simon311 2013-10-07 10:44:54 +04:00
parent 4151c831d6
commit a1fa2cdb9c

View file

@ -4019,7 +4019,7 @@ namespace TShockAPI
}
}
if (args.Player.InventorySlotAvailable || item.name.Contains("Coin"))
if (args.Player.InventorySlotAvailable || item.name.Contains("Coin") || 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"))
if (plr.InventorySlotAvailable || item.name.Contains("Coin") || item.type == 58 || item.type == 184)
{
if (itemAmount == 0 || itemAmount > item.maxStack)
itemAmount = item.maxStack;