Skip to content

Commit

Permalink
Replace version in @Mod annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
glowredman committed Dec 13, 2022
1 parent a6f82f5 commit 789e8b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ archivesBaseName = 'Controlling'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'

minecraft {
replaceIn "Controlling.java"
replace "GRADLETOKEN_VERSION", project.version
version = "1.7.10-10.13.4.1614-1.7.10"
mappings = "stable_12"
runDir = "run"
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/blamejared/controlling/Controlling.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import java.util.Set;
import java.util.stream.Collectors;

@Mod(modid = "controlling", name = "Controlling", version = "7.0.0", acceptableRemoteVersions = "*")
@Mod(modid = "controlling", name = "Controlling", version = "GRADLETOKEN_VERSION", acceptableRemoteVersions = "*")
public class Controlling {

public static Set<String> PATRON_LIST = new HashSet<>();
Expand Down

0 comments on commit 789e8b6

Please sign in to comment.