OrianaVenture / Randy_Vapok_ValheimMods

Fork of Randy's Valheim mods from Vapok's Fork
2 stars 3 forks source link

Adventure Divide by Zero #14

Open OrianaVenture opened 2 weeks ago

OrianaVenture commented 2 weeks ago

When refresh interval is set to 0 to disable merchant panel:

[Error  : Unity Log] DivideByZeroException: Attempted to divide by zero.
Stack trace:
EpicLoot.Adventure.Feature.AdventureFeature.GetSecondsUntilIntervalRefresh (System.Int32 intervalDays) (at <55f412b3b4e2404a80f52ac0796953be>:0)
EpicLoot.Adventure.Feature.AdventureFeature.GetSecondsUntilRefresh () (at <55f412b3b4e2404a80f52ac0796953be>:0)
EpicLoot.Adventure.Feature.SecretStashListPanel.UpdateRefreshTime () (at <55f412b3b4e2404a80f52ac0796953be>:0)
EpicLoot.Adventure.MerchantPanel.UpdateRefreshTime () (at <55f412b3b4e2404a80f52ac0796953be>:0)
EpicLoot.Adventure.MerchantPanel.Update () (at <55f412b3b4e2404a80f52ac0796953be>:0)

Perhaps add a way to easily disable from settings if nothing exists already.