public static void RightClick(Item item, Player player)
{
if (Main.mouseRightRelease)
{
item.modItem?.RightClick(player);
foreach (var hook in HookRightClick)
{
hook(item, player);
}
item.stack--;
if (item.stack == 0)
{
item.SetDefaults();
}
Main.PlaySound(7);
Main.stackSplit = 30;
Main.mouseRightRelease = false;
Recipe.FindRecipes();
}
}