From 11745aaa76116749f5e4c9e874bd659ae3b64b1e Mon Sep 17 00:00:00 2001
From: sschr15 <steven.sschr15@hotmail.com>
Date: Tue, 26 Oct 2021 20:15:02 -0500
Subject: [PATCH] Change quilt-to-intermediary saved name

If using Windows, the attempted previous name would fail because of the `:` character.
My change grabs only the version rather than the entire artifact name to hopefully prevent crashes
---
 .../oroarmor/quiltmappings/loom/QuiltMappingsOnLoomPlugin.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/com/oroarmor/quiltmappings/loom/QuiltMappingsOnLoomPlugin.java b/src/main/java/com/oroarmor/quiltmappings/loom/QuiltMappingsOnLoomPlugin.java
index ed0b7d9..6d89d66 100644
--- a/src/main/java/com/oroarmor/quiltmappings/loom/QuiltMappingsOnLoomPlugin.java
+++ b/src/main/java/com/oroarmor/quiltmappings/loom/QuiltMappingsOnLoomPlugin.java
@@ -74,7 +74,7 @@ public class QuiltMappingsOnLoomPlugin implements Plugin<Project> {
         public void visit(MappingVisitor mappingVisitor) throws IOException {
             String minecraftVersion = context.minecraftProvider().minecraftVersion();
 
-            File intermediaryToQm = project.file(".gradle/qm/qm_to_intermediary_" + quiltMappings + ".tiny");
+            File intermediaryToQm = project.file(".gradle/qm/qm_to_intermediary_" + quiltMappings.split(':')[2] + ".tiny");
 
             if (!intermediaryToQm.exists()) {
                 Set<File> quiltmappings = project.getConfigurations().detachedConfiguration(project.getDependencies().create(quiltMappings)).resolve();