Fixed rejection check inside of HandlePaintTile to account for the

Paint Sprayer (or Architect Gizmo Pack) being inside your inventory,
rather than on an accessory slot.
This commit is contained in:
James Puleo 2021-12-07 02:41:17 -05:00
parent f3b1a84821
commit fe3a59f84a
No known key found for this signature in database
GPG key ID: 3E16C7EFA34FB15D
3 changed files with 22 additions and 2 deletions

View file

@ -898,6 +898,18 @@ namespace TShockAPI
}
}
/// <summary>
/// Gets the player's inventory (first 5 rows)
/// </summary>
public IEnumerable<Item> Inventory
{
get
{
for (int i = 0; i < 50; i++)
yield return TPlayer.inventory[i];
}
}
/// <summary>
/// Gets the player's accessories.
/// </summary>