Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.20] Tag resource conditions do not work for loot data #3119

Open
Technici4n opened this issue Jun 13, 2023 · 2 comments
Open

[1.20] Tag resource conditions do not work for loot data #3119

Technici4n opened this issue Jun 13, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Technici4n
Copy link
Member

Technici4n commented Jun 13, 2023

This is because they are applied in the prepare phase for loot data, but tags are only available in the apply phase.

Here are our options:

  • Do nothing, tags conditions will not work for loot anymore.
  • Evaluate conditions in the apply phase. Problems:
    • Need to keep track of conditions until then.
    • If the deserialization fails, the reload fails (previously the object just didn't get deserialized at all).
  • Evaluate conditions in the prepare phase if needed, resolve tags from the resource manager directly (à la client tags) if something is looking for a tag.

I suggest supporting tag conditions in the prepare phase in general, by reading the tag contents from the ResourceManager ourselves on-demand (like the client tags do). (i.e. the last bullet point)

@Technici4n Technici4n reopened this Jun 13, 2023
@Technici4n
Copy link
Member Author

#3117 fixed the other conditions (mods, registry, etc...), however tag conditions still do not work for loot, and I opened this issue to track that. 😉

@modmuss50
Copy link
Member

#3117 fixed the other conditions (mods, registry, etc...), however tag conditions still do not work for loot, and I opened this issue to track that. 😉

Ah yeah, my bad. Thanks 👍

@Juuxel Juuxel added the bug Something isn't working label Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants