From 55d1a3cf13bddd4bb3804ba4790b7e6f6826d170 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Sun, 24 Jul 2022 21:58:57 +0200 Subject: [PATCH] Fixed an issue with 'Skill Scroller' casting mode --- .../net/Indyuce/mmocore/skill/cast/listener/SkillScroller.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/Indyuce/mmocore/skill/cast/listener/SkillScroller.java b/src/main/java/net/Indyuce/mmocore/skill/cast/listener/SkillScroller.java index 43717196..c7189bcf 100644 --- a/src/main/java/net/Indyuce/mmocore/skill/cast/listener/SkillScroller.java +++ b/src/main/java/net/Indyuce/mmocore/skill/cast/listener/SkillScroller.java @@ -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) {