mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed a bug where shooting star xp was awarded incorrectly on the last stardust of a level
This commit is contained in:
parent
686a2c9141
commit
32e1111fc7
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue