mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-13 06:05:46 +01:00
Fix slot-index issue.
NextSlotIndex value were not updated.
This commit is contained in:
parent
1fa5e65a57
commit
21cf82fe8e
@ -89,6 +89,10 @@ public class ChallengesGUI extends CommonGUI
|
||||
{
|
||||
nextItemIndex = panelBuilder.nextSlot() - panelBuilder.nextSlot() % 9 + 9;
|
||||
}
|
||||
else
|
||||
{
|
||||
nextItemIndex = panelBuilder.nextSlot();
|
||||
}
|
||||
}
|
||||
|
||||
this.addChallenges(panelBuilder, nextItemIndex);
|
||||
@ -99,6 +103,10 @@ public class ChallengesGUI extends CommonGUI
|
||||
{
|
||||
nextItemIndex = panelBuilder.nextSlot() - panelBuilder.nextSlot() % 9 + 9;
|
||||
}
|
||||
else
|
||||
{
|
||||
nextItemIndex = panelBuilder.nextSlot();
|
||||
}
|
||||
|
||||
this.addChallengeLevels(panelBuilder, nextItemIndex);
|
||||
|
||||
@ -109,6 +117,10 @@ public class ChallengesGUI extends CommonGUI
|
||||
{
|
||||
nextItemIndex = panelBuilder.nextSlot() - panelBuilder.nextSlot() % 9 + 9;
|
||||
}
|
||||
else
|
||||
{
|
||||
nextItemIndex = panelBuilder.nextSlot();
|
||||
}
|
||||
|
||||
this.addFreeChallenges(panelBuilder, nextItemIndex);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user