From 32e1111fc7a0b99434f4dc7797c8e5c2f5bbfb16 Mon Sep 17 00:00:00 2001 From: Player Name Date: Sun, 30 Jul 2023 02:23:33 +0000 Subject: [PATCH] Fixed a bug where shooting star xp was awarded incorrectly on the last stardust of a level --- .../global/activity/shootingstar/ShootingStarMiningPulse.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/src/main/content/global/activity/shootingstar/ShootingStarMiningPulse.kt b/Server/src/main/content/global/activity/shootingstar/ShootingStarMiningPulse.kt index 6bfa6d2b0..17122f979 100644 --- a/Server/src/main/content/global/activity/shootingstar/ShootingStarMiningPulse.kt +++ b/Server/src/main/content/global/activity/shootingstar/ShootingStarMiningPulse.kt @@ -83,7 +83,6 @@ class ShootingStarMiningPulse(player: Player?, node: Scenery?, val star: Shootin if (GameWorld.settings?.isDevMode == true) { star.dustLeft = 1 } - star.decDust() val bonusXp = player.getAttribute("shooting-star:bonus-xp", 0).toDouble() var xp = star.level.exp.toDouble() @@ -103,6 +102,8 @@ class ShootingStarMiningPulse(player: Player?, node: Scenery?, val star: Shootin if(!inInventory(player, Items.ANCIENT_BLUEPRINT_14651) && !inBank(player, Items.ANCIENT_BLUEPRINT_14651)){ rollBlueprint(player) } + + star.decDust() return false }