fabric icon indicating copy to clipboard operation
fabric copied to clipboard

TAW: Check that generated access widener matches expected output

Open Juuxel opened this issue 1 year ago • 2 comments

See https://github.com/FabricMC/fabric/pull/2695#discussion_r1032199744.

This prevents builds with outdated access wideners when the MC version changes, or when template.accesswidener is modified.

Also simplifies the code a bit - text.lines().collect(Collectors.toCollection { [] }) for getting a mutable list of the lines in a file was replaced with Groovy's readLines extension method wrapped in a new ArrayList for safety.

Juuxel avatar Nov 26 '22 11:11 Juuxel