mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-23 00:29:51 +00:00
disable quilt
This commit is contained in:
@@ -33,7 +33,7 @@ public class FabricPlatform extends LifecyclePlatform {
|
||||
@Override
|
||||
protected Collection<BaseAddon> getPlatformMods() {
|
||||
return FabricLoader.getInstance().getAllMods().stream().flatMap(
|
||||
mod -> parseModData(mod.getMetadata().getId(), mod.getMetadata().getVersion().getFriendlyString())).collect(
|
||||
mod -> parseModData(mod.getMetadata().getId(), mod.getMetadata().getVersion().getFriendlyString(), "fabric")).collect(
|
||||
Collectors.toList());
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# mixin-common
|
||||
|
||||
This project contains mixins shared between Forge, Fabric and Quilt, as
|
||||
This project contains mixins shared between Forge, Fabric and formerly Quilt, as
|
||||
well as glue code.
|
||||
@@ -24,7 +24,8 @@ dependencies {
|
||||
}
|
||||
|
||||
architectury {
|
||||
common("fabric", "forge", "quilt")
|
||||
// common("fabric", "forge", "quilt")
|
||||
common("fabric", "forge")
|
||||
minecraft = Versions.Mod.minecraft
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# mixin-lifecycle
|
||||
|
||||
This project contains lifecycle mixins shared between Fabric and Quilt.
|
||||
This project contains lifecycle mixins shared between Fabric and formerly Quilt.
|
||||
@@ -41,6 +41,7 @@ tasks {
|
||||
}
|
||||
|
||||
architectury {
|
||||
common("fabric", "quilt")
|
||||
// common("fabric", "quilt")
|
||||
common("fabric")
|
||||
minecraft = Versions.Mod.minecraft
|
||||
}
|
||||
@@ -111,11 +111,11 @@ public abstract class LifecyclePlatform extends ModPlatform {
|
||||
return addons;
|
||||
}
|
||||
|
||||
protected Stream<EphemeralAddon> parseModData(String id, String modVersion) {
|
||||
protected Stream<EphemeralAddon> parseModData(String id, String modVersion, String platform) {
|
||||
if(id.equals("terra") || id.equals("minecraft") || id.equals("java")) return Stream.empty();
|
||||
try {
|
||||
Version version = Versions.parseVersion(modVersion);
|
||||
return Stream.of(new EphemeralAddon(version, "quilt:" + id));
|
||||
return Stream.of(new EphemeralAddon(version, platform + ":" + id));
|
||||
} catch(ParseException e) {
|
||||
LOGGER.warn(
|
||||
"Mod {}, version {} does not follow semantic versioning specification, Terra addons will be unable to depend on " +
|
||||
|
||||
@@ -32,7 +32,7 @@ public class QuiltPlatform extends LifecyclePlatform {
|
||||
|
||||
@Override
|
||||
protected Collection<BaseAddon> getPlatformMods() {
|
||||
return QuiltLoader.getAllMods().stream().flatMap(mod -> parseModData(mod.metadata().id(), mod.metadata().version().raw())).collect(
|
||||
return QuiltLoader.getAllMods().stream().flatMap(mod -> parseModData(mod.metadata().id(), mod.metadata().version().raw(), "quilt")).collect(
|
||||
Collectors.toList());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user