mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-06 16:51:37 +00:00
Add explicit stop() to async actions
This commit is contained in:
@@ -31,6 +31,7 @@ class ConsumeAction(val consumable: Consumable, player: Player, val slot: Int) :
|
|||||||
consumable.consume(mob, slot)
|
consumable.consume(mob, slot)
|
||||||
mob.playAnimation(Animation(CONSUME_ANIMATION_ID))
|
mob.playAnimation(Animation(CONSUME_ANIMATION_ID))
|
||||||
wait(consumable.delay)
|
wait(consumable.delay)
|
||||||
|
stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ class DummyAction(val player: Player, position: Position) : AsyncDistancedAction
|
|||||||
} else {
|
} else {
|
||||||
skills.addExperience(Skill.ATTACK, EXP_PER_HIT)
|
skills.addExperience(Skill.ATTACK, EXP_PER_HIT)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user