Skip to content

Commit

Permalink
Fixes incorrect NEXT and PREVIOUS button descriptions.
Browse files Browse the repository at this point in the history
Fixes #289
  • Loading branch information
BONNe committed Jan 4, 2022
1 parent 7fbffbb commit 71e0029
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,8 @@ private PanelItem createNextButton(@NonNull ItemTemplateRecord template, Templat

if (template.description() != null)
{
builder.description(this.user.getTranslation(this.world, template.description()),
Constants.PARAMETER_NUMBER, String.valueOf(nextPageIndex));
builder.description(this.user.getTranslation(this.world, template.description(),
Constants.PARAMETER_NUMBER, String.valueOf(nextPageIndex)));
}

// Add ClickHandler
Expand Down Expand Up @@ -738,8 +738,8 @@ else if ("LEVEL".equals(target))

if (template.description() != null)
{
builder.description(this.user.getTranslation(this.world, template.description()),
Constants.PARAMETER_NUMBER, String.valueOf(previousPageIndex));
builder.description(this.user.getTranslation(this.world, template.description(),
Constants.PARAMETER_NUMBER, String.valueOf(previousPageIndex)));
}

// Add ClickHandler
Expand Down

0 comments on commit 71e0029

Please sign in to comment.