mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 03:49:10 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
a38c2f83ef
1 file changed
+5
-1
@@ -306,7 +306,11 @@ public class GuiNPCAbilities extends GuiNPCInterface2 implements IScrollData, IC
|
||||
List<String> list = Register.REGISTERED_NAMESPACES.get("ability");
|
||||
|
||||
if (list != null && !list.isEmpty()) {
|
||||
modIndex = (modIndex + 1) % list.size();
|
||||
if (modIndex == list.size() - 1) {
|
||||
scrollType = ScrollType.ALL;
|
||||
} else {
|
||||
modIndex = (modIndex + 1) % list.size();
|
||||
}
|
||||
} else {
|
||||
modIndex = 0;
|
||||
scrollType = ScrollType.ALL;
|
||||
|
||||
Reference in new issue
Block a user