Skip to content

Commit

Permalink
Readd 0.0.0+ to the version
Browse files Browse the repository at this point in the history
  • Loading branch information
EnnuiL committed Oct 21, 2024
1 parent 5a250ee commit cd21b03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/0005-Prefer-Quilt-over-Fabric-Loader.patch
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ index d19cd534d53871aa1f2618cf493b66a3676a6f4c..96aaf56ff212bb7fbe50003f2340ce94
project.getExtensions().create("fabricApi", FabricApiExtension.class);
diff --git a/src/main/java/net/fabricmc/loom/util/FabricCapabilities.java b/src/main/java/net/fabricmc/loom/util/FabricCapabilities.java
new file mode 100644
index 0000000000000000000000000000000000000000..0033a987e4a722dad44f98248f59f3fc708a0010
index 0000000000000000000000000000000000000000..f4dc3b7a9de753ac12b38aa4903fe342ecc71370
--- /dev/null
+++ b/src/main/java/net/fabricmc/loom/util/FabricCapabilities.java
@@ -0,0 +1,42 @@
Expand Down Expand Up @@ -82,7 +82,7 @@ index 0000000000000000000000000000000000000000..0033a987e4a722dad44f98248f59f3fc
+ var id = componentMetadataContext.getDetails().getId();
+ if (id.getGroup().equals("org.quiltmc") && id.getName().equals("quilt-loader")) {
+ componentMetadataContext.getDetails().allVariants(
+ v -> v.withCapabilities(c -> c.addCapability("net.fabricmc", "fabric-loader", id.getVersion()))
+ v -> v.withCapabilities(c -> c.addCapability("net.fabricmc", "fabric-loader", "0.0.0+" + id.getVersion()))
+ );
+ }
+ }
Expand Down

0 comments on commit cd21b03

Please sign in to comment.