Yoenis Cespedes is limiting his sports obsession to baseball. The Mets slugger hasn’t played golf since last July, he said Thursday, and has no plans to resume during the season, as he tries to remain focused on baseball and staying on the field for his team. Cespedes decided to bag golf after receiving input from the team’s strength and conditioning coordinator, Mike Barwis. By avoiding golf Cespedes was told he would receive better rest and recovery in addition to improving his hydration. Cespedes told The Post he “sometimes” misses golf, and hasn’t found an activity to fill the void. Cespedes hasn’t even allowed himself visits to the driving range, helping him avoid the temptation to play. Cespedes’ passion for golf has been a subject of controversy during his Mets tenure. Most notably, he was on the golf course in August 2016 (the visit was captured in a photo with former major leaguer Kevin Millar and posted on social media) on the same day he left a game against the Yankees with a quadriceps injury. He was later asked by general manager Sandy Alderson — who referred to the situation as “bad optics” — to cease playing golf during his time on the disabled list. “Our doctors have told us that probably had no impact on the injury, positive or negative,” Alderson said at the time. “But let’s face it, to play golf during the day and then go out injured in the evening, it’s a bad visual. I think he recognizes that at this point. So we’ll go from there.” Cespedes left Game 4 of the 2015 NLCS against the Cubs with a shoulder injury, hours after playing golf.