public void OnEveryUpdate() { if (!Context.IsWorldReady) { return; } IdlePause.OnTickUpdate(); Farmer player = Game1.player; if (Conf.AutoGate) { FenceGateAutomation.TryToggleGate(player); } if (player.CurrentTool is FishingRod rod) { FishingProbabilitiesBox.UpdateProbabilities(rod); AutoFisher.AfkFishing(); } GiftInformationTooltip.UpdateTooltip(); }
public void OnRenderHud(object sender, RenderingHudEventArgs args) { if (Game1.currentLocation is MineShaft shaft && Conf.MineInfoGui) { MineHud.DrawMineGui(shaft); } if (Conf.GiftInformation) { GiftInformationTooltip.DrawTooltip(); } if (Conf.FishingProbabilitiesInfo && Game1.player.CurrentTool is FishingRod rod && rod.isFishing) { FishingProbabilitiesBox.PrintFishingInfo(); } if (Conf.PauseWhenIdle) { IdlePause.DrawHud(); } }