Skip to content

Commit

Permalink
feat(web): take deepslate version into account in ore graph
Browse files Browse the repository at this point in the history
Merges #55
  • Loading branch information
SilentDepth committed Feb 7, 2022
2 parents 76d8f80 + a9d4e55 commit dc59f33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/player-ore-graph.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@
computed: {
oreData () {
const data = ORES.map(ore => {
const mined = this.player.stats[`minecraft:mined/minecraft:${ore}_ore`] ?? 0
const used = this.player.stats[`minecraft:used/minecraft:${ore}_ore`] ?? 0
const mined = (this.player.stats[`minecraft:mined/minecraft:${ore}_ore`] ?? 0) + (this.player.stats[`minecraft:mined/minecraft:deepslate_${ore}_ore`] ?? 0)
const used = (this.player.stats[`minecraft:used/minecraft:${ore}_ore`] ?? 0) + (this.player.stats[`minecraft:used/minecraft:deepslate_${ore}_ore`] ?? 0)
const net = Math.max(mined - used, 0)
return {
ore,
Expand Down

0 comments on commit dc59f33

Please sign in to comment.