Tools read the pinned Minecraft version from research-lock.json
lab.VERSION, lab.GAME (.local/minecraft/<version>) and lab.RESOURCES (.local/horizon-client/<version>) come from the lock, and lab.version_info() reads the pinned client jar's version.json. Every harness, generator and tool that named 26.3 (resource folders, jar and source paths, result records, the vanilla client's --version and asset index, the bare login client's protocol, the benchmark's options.txt data version, the packet id table's header) uses them, so a candidate worktree pinned to another version runs them unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@ SPECIES = ('wolf', 'cat', 'frog', 'pig', 'cow', 'chicken')
|
||||
def predicates():
|
||||
"""Every criterion's entity predicate, plus the components alone and
|
||||
with the wrong type."""
|
||||
folder = lab.LOCAL / 'horizon-client/26.3/data/minecraft/advancement/husbandry'
|
||||
folder = lab.RESOURCES / 'data/minecraft/advancement/husbandry'
|
||||
out = []
|
||||
for name in ADVANCEMENTS:
|
||||
data = json.loads((folder / f'{name}.json').read_text())
|
||||
@@ -33,7 +33,7 @@ def predicates():
|
||||
|
||||
|
||||
def variants(species):
|
||||
folder = lab.LOCAL / f'horizon-client/26.3/data/minecraft/{species}_variant'
|
||||
folder = lab.RESOURCES / f'data/minecraft/{species}_variant'
|
||||
return sorted('minecraft:' + p.stem for p in folder.glob('*.json'))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user