Skip to content

Commit

Permalink
fix: integer limit breaking cultivating (#1893)
Browse files Browse the repository at this point in the history
* refactor: update description content

* fix: integer limit breaking cultivating

* fix: remove description

* fix: yes
  • Loading branch information
DuckySoLucky authored Mar 18, 2023
1 parent caa7b35 commit b46588e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ async function processItems(base64, source, customTextures = false, packs, cache
const { farmed_cultivating } = item.tag.ExtraAttributes;

if (farmed_cultivating > 0) {
item.extra.farmed_cultivating = farmed_cultivating;
item.extra.farmed_cultivating = item.tag?.ExtraAttributes?.mined_crops?.toString() ?? farmed_cultivating;
}
}

Expand Down
2 changes: 1 addition & 1 deletion views/stats.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ function getDescription() {
`💰 Purse: ${helper.formatNumber(calculated.purse, true)}`
)
// Done!
// Done!
return description.join('')
}
Expand Down

0 comments on commit b46588e

Please sign in to comment.