Skip to content

Commit

Permalink
Added a hard Minecraft version dependency to avoid the coremod not lo…
Browse files Browse the repository at this point in the history
…ading on incorrect versions.
  • Loading branch information
Vexatos committed Jul 13, 2016
1 parent 1fdd30a commit 7387a0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ minecraft {
version = "${config.minecraft.version}-${config.forge.version}"

replace "@VERSION@", project.simpleVersion
replace "@MCVERSION@", config.minecraft.version
}

processResources {
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/li/cil/oc/OpenComputers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import org.apache.logging.log4j.Logger

@Mod(modid = OpenComputers.ID, name = OpenComputers.Name,
version = OpenComputers.Version,
modLanguage = "scala", useMetadata = true)
modLanguage = "scala", useMetadata = true, acceptedMinecraftVersions = "[@MCVERSION@,@MCVERSION@+)")
object OpenComputers {
final val ID = "OpenComputers"

Expand Down

0 comments on commit 7387a0a

Please sign in to comment.