mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-30 13:05:27 -05:00
Fix logged deprecation warning for internal forge.localMods usage, part 2
This commit is contained in:
@@ -46,6 +46,7 @@ import net.fabricmc.loom.api.ForgeLocalMod;
|
||||
import net.fabricmc.loom.api.ModSettings;
|
||||
import net.fabricmc.loom.configuration.ide.RunConfigSettings;
|
||||
import net.fabricmc.loom.configuration.launch.LaunchProviderSettings;
|
||||
import net.fabricmc.loom.extension.ForgeExtensionImpl;
|
||||
import net.fabricmc.loom.util.Constants;
|
||||
import net.fabricmc.loom.util.DependencyDownloader;
|
||||
import net.fabricmc.loom.util.gradle.SourceSetHelper;
|
||||
@@ -170,7 +171,7 @@ public class ForgeRunsProvider {
|
||||
}
|
||||
}
|
||||
|
||||
for (ForgeLocalMod localMod : extension.getForge().getLocalMods()) {
|
||||
for (ForgeLocalMod localMod : ((ForgeExtensionImpl) extension.getForge()).localMods) {
|
||||
String sourceSetName = localMod.getName();
|
||||
|
||||
localMod.getSourceSets().flatMap(sourceSet -> Stream.concat(
|
||||
|
||||
@@ -51,7 +51,7 @@ public class ForgeExtensionImpl implements ForgeExtensionAPI {
|
||||
private final SetProperty<String> mixinConfigs;
|
||||
private final Property<Boolean> useCustomMixin;
|
||||
private final List<String> dataGenMods = new ArrayList<>(); // not a property because it has custom adding logic
|
||||
private final NamedDomainObjectContainer<ForgeLocalMod> localMods;
|
||||
public final NamedDomainObjectContainer<ForgeLocalMod> localMods; // public to avoid deprecation warnings for internal calls
|
||||
|
||||
@Inject
|
||||
public ForgeExtensionImpl(Project project, LoomGradleExtension extension) {
|
||||
|
||||
Reference in New Issue
Block a user