Commit 85f2c3c
authored
fix(lxc): use .versions | keys | last for deterministic latest PaperMC version (#72)
The Fill v3 API returns .versions as an object (keys = MC version strings),
not an array. Using `keys | last` yields the lexicographically highest
(= newest) version reliably.
Fixes broken `.versions | last` (null on object input) and the
non-deterministic `keys_unsorted[0]` variant from the original PR.
Co-authored-by: Justahobby01 <44276845+Justahobby01@users.noreply.github.com>1 parent 723d22b commit 85f2c3c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments