@Override
public void initGui()
{
super.initGui();
this.title = I18n.format(quest.name);
<BUG>this.selReward = 0;
this.taskRender = null;
this.selTask = 0;
this.rewardRender = null;</BUG>
this.quest.SetChoiceData(choiceData); // Updates choices with any previous values

@Override
public void initGui()
{
super.initGui();
this.title = I18n.format(quest.name);
this.selReward = MathHelper.clamp_int(selReward, 0, Math.max(0, quest.rewards.size() - 1));
this.taskRender = null;
this.selTask = MathHelper.clamp_int(selTask, 0, Math.max(0, quest.tasks.size() - 1));
this.rewardRender = null;
this.quest.SetChoiceData(choiceData); // Updates choices with any previous values
