Add explicit stop() to async actions

This commit is contained in:
Gary Tierney
2017-09-17 03:24:59 +01:00
parent 0dc6879bdc
commit 40095d65e5
2 changed files with 3 additions and 0 deletions
@@ -31,6 +31,7 @@ class ConsumeAction(val consumable: Consumable, player: Player, val slot: Int) :
consumable.consume(mob, slot)
mob.playAnimation(Animation(CONSUME_ANIMATION_ID))
wait(consumable.delay)
stop()
}
}
+2
View File
@@ -66,6 +66,8 @@ class DummyAction(val player: Player, position: Position) : AsyncDistancedAction
} else {
skills.addExperience(Skill.ATTACK, EXP_PER_HIT)
}
stop()
}
}