Skip to content

Commit

Permalink
Fix slot-index issue.
Browse files Browse the repository at this point in the history
NextSlotIndex value were not updated.
  • Loading branch information
BONNe committed Feb 2, 2019
1 parent 1fa5e65 commit 21cf82f
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ public void build()
{
nextItemIndex = panelBuilder.nextSlot() - panelBuilder.nextSlot() % 9 + 9;
}
else
{
nextItemIndex = panelBuilder.nextSlot();
}
}

this.addChallenges(panelBuilder, nextItemIndex);
Expand All @@ -99,6 +103,10 @@ public void build()
{
nextItemIndex = panelBuilder.nextSlot() - panelBuilder.nextSlot() % 9 + 9;
}
else
{
nextItemIndex = panelBuilder.nextSlot();
}

this.addChallengeLevels(panelBuilder, nextItemIndex);

Expand All @@ -109,6 +117,10 @@ public void build()
{
nextItemIndex = panelBuilder.nextSlot() - panelBuilder.nextSlot() % 9 + 9;
}
else
{
nextItemIndex = panelBuilder.nextSlot();
}

this.addFreeChallenges(panelBuilder, nextItemIndex);
}
Expand Down

0 comments on commit 21cf82f

Please sign in to comment.