From 553a4cb583377d1e8fd7dfc83e84d7298a8c3f29 Mon Sep 17 00:00:00 2001 From: Fix3d Date: Thu, 5 Dec 2024 12:34:17 +0300 Subject: [PATCH] fix: Rock Pet Milestone counts Dwarven Metal and Gemstones too --- .../biscuit/skyblockaddons/listeners/PlayerListener.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/codes/biscuit/skyblockaddons/listeners/PlayerListener.java b/src/main/java/codes/biscuit/skyblockaddons/listeners/PlayerListener.java index f7d96231..dc6e9773 100644 --- a/src/main/java/codes/biscuit/skyblockaddons/listeners/PlayerListener.java +++ b/src/main/java/codes/biscuit/skyblockaddons/listeners/PlayerListener.java @@ -1166,8 +1166,12 @@ public void onBlockBreak(SkyblockBlockBreakEvent e) { SkyblockOre minedOre = SkyblockOre.getByStateOrNull(blockState); if (minedOre != null) { - if (minedOre.getBlockType() == SkyblockOre.BlockType.ORE) { - main.getPersistentValuesManager().addOresMined(); + switch (minedOre.getBlockType()) { + case ORE: + case DWARVEN_METAL: + case GEMSTONE: + main.getPersistentValuesManager().addOresMined(); + break; } if (DevUtils.isLoggingSkyBlockOre()) {