forked from Upstream/mmocore
Fixed an issue with 'Skill Scroller' casting mode
This commit is contained in:
parent
a659468775
commit
55d1a3cf13
@ -107,6 +107,9 @@ public class SkillScroller implements Listener {
|
||||
CustomSkillCastingHandler casting = (CustomSkillCastingHandler) playerData.getSkillCasting();
|
||||
casting.index = mod(casting.index + change, playerData.getBoundSkills().size());
|
||||
casting.onTick();
|
||||
|
||||
if (changeSound != null)
|
||||
changeSound.playTo(event.getPlayer());
|
||||
}
|
||||
|
||||
private int mod(int x, int n) {
|
||||
|
Loading…
Reference in New Issue
Block a user