Skip to content

Commit

Permalink
fixed accidentlly resetting to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
catgirlseraid committed May 19, 2024
1 parent 3f4918a commit a9f827d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@ object FarmingCollectionDisplay {
}
collectionPlacements[crop] = placements
lastFetchedCrop = crop
currentCollections[crop] = data.amount

if (data.amount != 0L) {
currentCollections[crop] = data.amount
}


if (!hasCollectionBeenFetched && data.amount == 0L) {
hasCollectionBeenFetched = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ object SkillRankDisplay {
}
skillPlacements[skill] = placements
lastSkillFetched = skill
currentSkills[skill] = data.amount
if (data.amount != 0L) {
currentSkills[skill] = data.amount
}

if (!hasSkillsBeenFetched && data.amount == 0L) {
hasSkillsBeenFetched = true
Expand Down

0 comments on commit a9f827d

Please sign in to comment.