Fixes incorrect NEXT and PREVIOUS button descriptions.

Fixes #289
This commit is contained in:
BONNe 2022-01-04 21:38:52 +02:00
parent 7fbffbb6d2
commit 71e0029d46

View File

@ -645,8 +645,8 @@ public class ChallengesPanel extends CommonPanel
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
@ -738,8 +738,8 @@ public class ChallengesPanel extends CommonPanel
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