Skip to content

[Bug]: "Parents Visible" display status ("Hidden Until") has inaccurate behavior #259

Description

@verarr

Bug Description

@GoldenMidas on Discord:

hey! i think there something not right either in the wiki page or with how "parents visible" setting goes

apparently, instead of it checking whether or not dependencies are visible, it checks whether or not dependecies are completed

This may be because when recursively checking whether a quest's dependencies would be hidden, the dependencies' display status isn't respected:

} else if (status == QuestDisplayStatus.DEPENDENCIES_VISIBLE) {
boolean visible = statuses.getBoolean(quest.key());
if (visible) {
return false;
}
for (var dependency : quest.dependencies()) {
if (shouldHide(statuses, dependency, QuestDisplayStatus.DEPENDENCIES_VISIBLE)) {
return true;
}
}
return quest.value().settings().hiddenUntil() != QuestDisplayStatus.DEPENDENCIES_VISIBLE;
}

How to Reproduce?

in non-edit mode

Image

in edit mode

Image

all of the quests with ingots/diamond have the "hidden until" set to "parents visible"
each one has the previous one as a dependency
(middle one -> copper -> iron -> gold -> diamond)

[...] but they only become visible once the copper one is completed

Expected Behavior

from what the wiki says, i assumed as soon as the copper one was visible, all of the following ones would be too

Version

1.1.13

Mod Loader Version

N/A

Mod Loader

N/A

Logs or additional context

No response

Code of Conduct

  • I have searched the issue tracker and confirmed that the issue has not been reported
  • I have checked the FAQ (if one is present) and my issue is not listed
  • I have verified that I am using the latest version of the mod
  • I have verified that I have installed all the required dependencies for the mod
  • I have verified that I do not have Optifine installed. We will close issues if we detect Optifine is in your pack. We cannot fix Optifine issues. Please do not report issues with Optifine present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions