private static void FixTilesheetReference(ref Texture2D tex, ref Rectangle sourceRect)
        {
            if (sourceRect.Y + sourceRect.Height < 4096 && tex != StardewValley.FarmerRenderer.pantsTexture)
            {
                return;
            }

            var target = TileSheetExtensions.GetAdjustedTileSheetTarget(tex, sourceRect);

            tex          = TileSheetExtensions.GetTileSheet(tex, target.TileSheet);
            sourceRect.Y = target.Y;
        }
        public static void FixTilesheetReference(ref Texture2D tex, ref Rectangle sourceRect)
        {
            if (sourceRect.Y + sourceRect.Height < 4096)
            {
                return;
            }

            var target = TileSheetExtensions.GetAdjustedTileSheetTarget(tex, sourceRect);

            tex          = TileSheetExtensions.GetTileSheet(tex, target.TileSheet);
            sourceRect.Y = target.Y;
        }