private void PlayerWarped(Farmer who, GameLocation prevLocation, GameLocation newLocation) { if (!isDeepWoodsGameRunning) { return; } if (prevLocation is DeepWoods dw1 && newLocation is DeepWoods dw2 && dw1.Name == dw2.Name) { return; } if (newLocation is Woods woods) { OpenPassageInSecretWoods(woods); } DeepWoodsManager.PlayerWarped(who, prevLocation as DeepWoods, newLocation as DeepWoods, newLocation); if (newLocation is AnimalHouse animalHouse) { EasterEggFunctions.CheckEggHatched(who, animalHouse); } }