Skip to content

Commit 17b7894

Browse files
committed
Bump AF
1 parent 63b7583 commit 17b7894

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

Diff for: build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ dependencies {
7373
commonImplementation 'com.google.code.gson:gson:2.10.1'
7474
commonImplementation 'com.google.guava:guava:31.1-jre'
7575
commonImplementation 'de.siegmar:fastcsv:2.2.1'
76-
commonImplementation('net.minecraftforge:artifactural:3.0.16') {
76+
commonImplementation('net.minecraftforge:artifactural:3.0.18') {
7777
transitive = false
7878
}
7979
commonImplementation('net.minecraftforge:unsafe:0.2.0') {

Diff for: src/common/java/net/minecraftforge/gradle/common/util/runs/RunConfigGenerator.java

+11-3
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,17 @@ protected static Map<String, Supplier<String>> configureTokensLazy(final Project
144144
Map<String, Supplier<String>> tokens = new HashMap<>();
145145
runConfig.getTokens().forEach((k, v) -> tokens.put(k, () -> v));
146146
runConfig.getLazyTokens().forEach((k, v) -> tokens.put(k, Suppliers.memoize(v::get)));
147-
tokens.compute("source_roots", (key, sourceRoots) -> Suppliers.memoize(() -> ((sourceRoots != null)
148-
? Stream.concat(Arrays.stream(sourceRoots.get().split(File.pathSeparator)), modClasses)
149-
: modClasses).distinct().collect(Collectors.joining(File.pathSeparator))));
147+
tokens.compute("source_roots", (k, v) -> {
148+
Stream<String> paths;
149+
if (v == null)
150+
paths = modClasses;
151+
else {
152+
String[] existing = v.get().split(File.pathSeparator);
153+
paths = Stream.concat(Arrays.stream(existing), modClasses);
154+
}
155+
156+
return Suppliers.memoize(() -> paths.distinct().collect(Collectors.joining(File.pathSeparator)));
157+
});
150158

151159
Supplier<String> runtimeClasspath = tokens.compute("runtime_classpath", makeClasspathToken(runtimeClasspathArtifacts));
152160
Supplier<String> minecraftClasspath = tokens.compute("minecraft_classpath", makeClasspathToken(minecraftArtifacts));

0 commit comments

Comments
 (0)