AtRemapper: Work around Gradle 8.1 bug causing Files.readString(path) to call Path.toFile()

Same issue and fix as in 4ff9f726e1,
just a different class.

Fixes #129.
This commit is contained in:
Juuz
2023-05-10 18:36:03 +03:00
parent 4337986982
commit da08cf9330

View File

@@ -52,7 +52,7 @@ public final class AtRemapper {
Path atPath = fs.getPath(Constants.Forge.ACCESS_TRANSFORMER_PATH);
if (Files.exists(atPath)) {
String atContent = Files.readString(atPath);
String atContent = Files.readString(atPath, StandardCharsets.UTF_8);
String[] lines = atContent.split("\n");
List<String> output = new ArrayList<>(lines.length);