Skip to content

Commit 88f9e62

Browse files
committed
fail hard with any FG version mismatches
1 parent c316474 commit 88f9e62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/net/minecraftforge/gradle/user/UserExtension.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ public void setVersion(String str)
8888

8989
version = matcher.group(1);
9090
apiVersion = matcher.group(0);
91+
92+
// to stop some derps with ForgeGradle versions
93+
if (!version.startsWith("1.6"))
94+
throw new IllegalArgumentException("This version of ForgeGradle only works with Minecraft 1.6.4!");
9195
}
9296

9397
public String getApiVersion()

0 commit comments

Comments
 (0)