Skip to content

Commit 7387a0a

Browse files
committedJul 13, 2016
Added a hard Minecraft version dependency to avoid the coremod not loading on incorrect versions.
1 parent 1fdd30a commit 7387a0a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

Diff for: ‎build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ minecraft {
236236
version = "${config.minecraft.version}-${config.forge.version}"
237237

238238
replace "@VERSION@", project.simpleVersion
239+
replace "@MCVERSION@", config.minecraft.version
239240
}
240241

241242
processResources {

Diff for: ‎src/main/scala/li/cil/oc/OpenComputers.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import org.apache.logging.log4j.Logger
1414

1515
@Mod(modid = OpenComputers.ID, name = OpenComputers.Name,
1616
version = OpenComputers.Version,
17-
modLanguage = "scala", useMetadata = true)
17+
modLanguage = "scala", useMetadata = true, acceptedMinecraftVersions = "[@MCVERSION@,@MCVERSION@+)")
1818
object OpenComputers {
1919
final val ID = "OpenComputers"
2020

0 commit comments

Comments
 (0)