Skip to content

Commit dc59f33

Browse files
committed
feat(web): take deepslate version into account in ore graph
Merges #55
2 parents 76d8f80 + a9d4e55 commit dc59f33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/components/player-ore-graph.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@
143143
computed: {
144144
oreData () {
145145
const data = ORES.map(ore => {
146-
const mined = this.player.stats[`minecraft:mined/minecraft:${ore}_ore`] ?? 0
147-
const used = this.player.stats[`minecraft:used/minecraft:${ore}_ore`] ?? 0
146+
const mined = (this.player.stats[`minecraft:mined/minecraft:${ore}_ore`] ?? 0) + (this.player.stats[`minecraft:mined/minecraft:deepslate_${ore}_ore`] ?? 0)
147+
const used = (this.player.stats[`minecraft:used/minecraft:${ore}_ore`] ?? 0) + (this.player.stats[`minecraft:used/minecraft:deepslate_${ore}_ore`] ?? 0)
148148
const net = Math.max(mined - used, 0)
149149
return {
150150
ore,

0 commit comments

Comments
 (0)