mojira.dev
MC-313275

Output order of elements in loot_context_requirements.json report is not stable

The bug

When running the data generators to produce reports, the loot_context_requirements.json lists allowed and required context fields in an arbitrary order that changes each run because hashes probably.

How to reproduce

  1. Get the vanilla server jar

  2. Run java -DbundlerMainClass="net.minecraft.data.Main" -jar 26.4-snapshot-10.jar --reports

  3. Take a look at generated/reports/loot_context_requirements.json

  4. Do it again

Expected result

The file should be exactly the same

Observed results

Likely, the order of the strings in many of the lists has changed

Linked issues

Comments 0

No comments.

tryashtar

(Unassigned)

Unconfirmed

26.4 Snapshot 10

Retrieved