Fix slot-index issue.

NextSlotIndex value were not updated.
This commit is contained in:
BONNe 2019-02-02 22:22:04 +02:00
parent 1fa5e65a57
commit 21cf82fe8e

View File

@ -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);
}